Sync generator with live version: blogNoArticles label for description-only project pages
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user