summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/art/index.md2
-rw-r--r--content/index.md2
-rw-r--r--content/notebook/archive/ai-art.md5
-rw-r--r--content/notebook/scrap/index.md1
-rw-r--r--scripts/page.lua9
5 files changed, 10 insertions, 9 deletions
diff --git a/content/art/index.md b/content/art/index.md
index f87d8c1..3a29134 100644
--- a/content/art/index.md
+++ b/content/art/index.md
@@ -8,4 +8,4 @@ list_limit: 3
8feed: true 8feed: true
9--- 9---
10 10
11Source code and various other projects at [git.vulpes.one](//git.vulpes.one/). I post work-in-progress art on my [Fediverse](https://mk.vulpes.one/@volpeon) account. 11Source code and various other projects at [git.vulpes.one](//git.vulpes.one/). Work-in-progress art at [@volpeon@mk.vulpes.one](https://mk.vulpes.one/@volpeon).
diff --git a/content/index.md b/content/index.md
index 6353cf1..7482da6 100644
--- a/content/index.md
+++ b/content/index.md
@@ -2,4 +2,4 @@
2title: Volpeon 2title: Volpeon
3--- 3---
4 4
5Red fox and part-time dragon disguised as a software developer. I create vector art and experiment with AI. 5Red fox and part-time dragon disguised as a software developer. Creating vector art and experimenting with AI.
diff --git a/content/notebook/archive/ai-art.md b/content/notebook/archive/ai-art.md
index f8a9fd5..768e360 100644
--- a/content/notebook/archive/ai-art.md
+++ b/content/notebook/archive/ai-art.md
@@ -3,11 +3,10 @@ schema_type: DigitalDocument
3title: On AI Art 3title: On AI Art
4date: 2022-09-30 4date: 2022-09-30
5last_update: 2022-11-13 5last_update: 2022-11-13
6unlisted: true
6 7
7references: 8references:
8 - label: "2022-09-30 -- Reply to my original post" 9 - label: "2022-09-30"
9 url: https://merveilles.town/@jbauer/109088036845654325
10 - label: "2022-09-30 -- My Response"
11 url: https://mk.vulpes.one/notes/95s8h9ajtp 10 url: https://mk.vulpes.one/notes/95s8h9ajtp
12 - label: "2022-11-13" 11 - label: "2022-11-13"
13 url: https://mk.vulpes.one/notes/97i33e337z 12 url: https://mk.vulpes.one/notes/97i33e337z
diff --git a/content/notebook/scrap/index.md b/content/notebook/scrap/index.md
index 26e3298..41bd2dc 100644
--- a/content/notebook/scrap/index.md
+++ b/content/notebook/scrap/index.md
@@ -2,6 +2,7 @@
2title: Scrap 2title: Scrap
3position: 100 3position: 100
4list_read_indicators: true 4list_read_indicators: true
5list_no_propagate: true
5feed: true 6feed: true
6--- 7---
7 8
diff --git a/scripts/page.lua b/scripts/page.lua
index f9f5742..72158a1 100644
--- a/scripts/page.lua
+++ b/scripts/page.lua
@@ -51,7 +51,7 @@ function d1_page_to_list_item(meta)
51 } 51 }
52end 52end
53 53
54function d2_page_to_list_item(meta, with_category) 54function d2_page_to_list_item(meta, unlisted, with_category)
55 return { 55 return {
56 title = meta.title, 56 title = meta.title,
57 subtitle = meta.subtitle, 57 subtitle = meta.subtitle,
@@ -69,12 +69,13 @@ function d2_page_to_list_item(meta, with_category)
69 icon = meta.icon, 69 icon = meta.icon,
70 post_icon = meta.post_icon, 70 post_icon = meta.post_icon,
71 indicator = meta.indicator, 71 indicator = meta.indicator,
72 unlisted = unlisted
72 } 73 }
73end 74end
74 75
75function cat_to_list_cat(meta, allItems) 76function cat_to_list_cat(meta, allItems)
76 local limit = meta.list_limit or 9999 77 local limit = meta.list_limit or 9999
77 local items = allItems:take(limit) 78 local items = allItems:filter(function (item) return not item.unlisted end):take(limit)
78 local omitted = #allItems - #items 79 local omitted = #allItems - #items
79 80
80 local description = nil 81 local description = nil
@@ -109,7 +110,7 @@ function generate_list(meta)
109 if meta.depth == 2 then 110 if meta.depth == 2 then
110 return meta.pages.all 111 return meta.pages.all
111 :map(function(cat) 112 :map(function(cat)
112 local allItems = cat.pages.all:map(function(p) return d2_page_to_list_item(p, false) end) 113 local allItems = cat.pages.all:map(function(p) return d2_page_to_list_item(p, false, false) end)
113 114
114 return cat_to_list_cat(cat, allItems) 115 return cat_to_list_cat(cat, allItems)
115 end) 116 end)
@@ -121,7 +122,7 @@ function generate_list(meta)
121 :map(function(cat) 122 :map(function(cat)
122 local allItems = cat.pages.all:flatMap(function(c) 123 local allItems = cat.pages.all:flatMap(function(c)
123 if cat.list_flatten and c.depth ~= 0 then 124 if cat.list_flatten and c.depth ~= 0 then
124 return c.pages.all:map(function(p) return d2_page_to_list_item(p, true) end) 125 return c.pages.all:map(function(p) return d2_page_to_list_item(p, c.list_no_propagate, true) end)
125 else 126 else
126 return pandoc.List({ d1_page_to_list_item(c) }) 127 return pandoc.List({ d1_page_to_list_item(c) })
127 end 128 end