From 064082bb32e5d2024abff38aaac791cf067f9dad Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 14 Apr 2024 18:22:58 -0500 Subject: test new change --- publish.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'publish.el') diff --git a/publish.el b/publish.el index c69b078..1e0246d 100644 --- a/publish.el +++ b/publish.el @@ -9,6 +9,15 @@ (require 'org) (require 'ox-html) +(defun my/org-publish-org-sitemap-format (entry style project) + "custom sitemap entry formatting: add date" + (cond ((not (directory-name-p entry)) + (format "[[file:%s][(%s) %s]]\n" + entry + (format-time-string "%Y-%m-%d %T" + (org-publish-find-date entry project)) + (org-publish-find-title entry project))))) + (setq org-publish-project-alist '( ("org-notes" @@ -45,7 +54,7 @@ :html-postamble nil :auto-sitemap t :sitemap-filename "index.org" - :sitemap-format-entry "%Y-%m-%d %T" + :sitemap-format-entry my/org-publish-org-sitemap-format :sitemap-sort-files anti-chronologically :sitemap-title "Blog") ("org-config" -- cgit v1.2.3