From b67e804c525f514f56231c17e782c663264d5f45 Mon Sep 17 00:00:00 2001 From: trilium-share-gruvbox Date: Thu, 3 Sep 2026 06:20:59 +0200 Subject: [PATCH] Sync generator with live version: blogNoArticles label for description-only project pages --- blog_generator.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/blog_generator.js b/blog_generator.js index 2b6055d..a4c3b0b 100644 --- a/blog_generator.js +++ b/blog_generator.js @@ -529,6 +529,17 @@ function run() { userText = current; } + // Project pages carry only their description — no article overview. + // The label keeps the generator from re-adding the list on every run. + if (catNote.hasLabel("blogNoArticles")) { + if (catNote.getContent() !== userText) { + catNote.setContent(userText); + catNote.save(); + api.log("blog_generator: description-only category page: " + catNote.title); + } + continue; + } + const children = catNote.getChildNotes(); const subs = children.filter(c => c.getLabelValue("publish") !== "true");