Sort menu posts by publication date with YYYY-MM-DD shortened-title prefix

This commit is contained in:
trilium-share-gruvbox
2026-08-28 15:00:39 +02:00
parent a8d9c83ae7
commit 8c4ba5af94
4 changed files with 63 additions and 1 deletions
+2 -1
View File
@@ -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) {