Sort menu posts by publication date with YYYY-MM-DD shortened-title prefix
This commit is contained in:
+2
-1
@@ -387,7 +387,8 @@ function run() {
|
||||
url: SHARE_BASE + "/" + encodeURIComponent(a.getLabelValue("shareAlias") || a.noteId),
|
||||
summary: a.getLabelValue("summary") || "",
|
||||
tags: tagList(a),
|
||||
category: a.getLabelValue("category") || ""
|
||||
category: a.getLabelValue("category") || "",
|
||||
date: (a.getLabelValue("date") || a.dateCreated).slice(0, 10)
|
||||
}));
|
||||
const html = `<script>window.blogData = ${JSON.stringify({ articles: list })};</script>`;
|
||||
if (dataNote.getContent() !== html) {
|
||||
|
||||
Reference in New Issue
Block a user