Sync generator with live version: blogNoArticles label for description-only project pages

This commit is contained in:
trilium-share-gruvbox
2026-09-03 06:20:59 +02:00
parent fd6f7121c2
commit b67e804c52
+11
View File
@@ -529,6 +529,17 @@ function run() {
userText = current; 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 children = catNote.getChildNotes();
const subs = children.filter(c => c.getLabelValue("publish") !== "true"); const subs = children.filter(c => c.getLabelValue("publish") !== "true");