diff options
author | Volpeon <git@volpeon.ink> | 2023-01-11 15:47:57 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-11 15:47:57 +0100 |
commit | 9af7a5cd80ad0f49817ffba517f5e6220cb329f2 (patch) | |
tree | 5103f991be568958601ea6ee7971f80f25d08e67 | |
parent | Fix (diff) | |
download | volpeon.ink-9af7a5cd80ad0f49817ffba517f5e6220cb329f2.tar.gz volpeon.ink-9af7a5cd80ad0f49817ffba517f5e6220cb329f2.tar.bz2 volpeon.ink-9af7a5cd80ad0f49817ffba517f5e6220cb329f2.zip |
Update
-rw-r--r-- | content/art/index.md | 2 | ||||
-rw-r--r-- | content/index.md | 2 | ||||
-rw-r--r-- | content/notebook/archive/ai-art.md | 5 | ||||
-rw-r--r-- | content/notebook/scrap/index.md | 1 | ||||
-rw-r--r-- | scripts/page.lua | 9 |
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 | |||
8 | feed: true | 8 | feed: true |
9 | --- | 9 | --- |
10 | 10 | ||
11 | Source 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. | 11 | Source 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 @@ | |||
2 | title: Volpeon | 2 | title: Volpeon |
3 | --- | 3 | --- |
4 | 4 | ||
5 | Red fox and part-time dragon disguised as a software developer. I create vector art and experiment with AI. | 5 | Red 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 | |||
3 | title: On AI Art | 3 | title: On AI Art |
4 | date: 2022-09-30 | 4 | date: 2022-09-30 |
5 | last_update: 2022-11-13 | 5 | last_update: 2022-11-13 |
6 | unlisted: true | ||
6 | 7 | ||
7 | references: | 8 | references: |
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 @@ | |||
2 | title: Scrap | 2 | title: Scrap |
3 | position: 100 | 3 | position: 100 |
4 | list_read_indicators: true | 4 | list_read_indicators: true |
5 | list_no_propagate: true | ||
5 | feed: true | 6 | feed: 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 | } |
52 | end | 52 | end |
53 | 53 | ||
54 | function d2_page_to_list_item(meta, with_category) | 54 | function 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 | } |
73 | end | 74 | end |
74 | 75 | ||
75 | function cat_to_list_cat(meta, allItems) | 76 | function 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 |