From 9af7a5cd80ad0f49817ffba517f5e6220cb329f2 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 11 Jan 2023 15:47:57 +0100 Subject: Update --- content/art/index.md | 2 +- content/index.md | 2 +- content/notebook/archive/ai-art.md | 5 ++--- content/notebook/scrap/index.md | 1 + 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 feed: true --- -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. +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 @@ title: Volpeon --- -Red fox and part-time dragon disguised as a software developer. I create vector art and experiment with AI. +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 title: On AI Art date: 2022-09-30 last_update: 2022-11-13 +unlisted: true references: - - label: "2022-09-30 -- Reply to my original post" - url: https://merveilles.town/@jbauer/109088036845654325 - - label: "2022-09-30 -- My Response" + - label: "2022-09-30" url: https://mk.vulpes.one/notes/95s8h9ajtp - label: "2022-11-13" 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 @@ title: Scrap position: 100 list_read_indicators: true +list_no_propagate: true feed: true --- 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) } end -function d2_page_to_list_item(meta, with_category) +function d2_page_to_list_item(meta, unlisted, with_category) return { title = meta.title, subtitle = meta.subtitle, @@ -69,12 +69,13 @@ function d2_page_to_list_item(meta, with_category) icon = meta.icon, post_icon = meta.post_icon, indicator = meta.indicator, + unlisted = unlisted } end function cat_to_list_cat(meta, allItems) local limit = meta.list_limit or 9999 - local items = allItems:take(limit) + local items = allItems:filter(function (item) return not item.unlisted end):take(limit) local omitted = #allItems - #items local description = nil @@ -109,7 +110,7 @@ function generate_list(meta) if meta.depth == 2 then return meta.pages.all :map(function(cat) - local allItems = cat.pages.all:map(function(p) return d2_page_to_list_item(p, false) end) + local allItems = cat.pages.all:map(function(p) return d2_page_to_list_item(p, false, false) end) return cat_to_list_cat(cat, allItems) end) @@ -121,7 +122,7 @@ function generate_list(meta) :map(function(cat) local allItems = cat.pages.all:flatMap(function(c) if cat.list_flatten and c.depth ~= 0 then - return c.pages.all:map(function(p) return d2_page_to_list_item(p, true) end) + return c.pages.all:map(function(p) return d2_page_to_list_item(p, c.list_no_propagate, true) end) else return pandoc.List({ d1_page_to_list_item(c) }) end -- cgit v1.2.3-70-g09d2