move date out of link

This commit is contained in:
Jacob Janzen 2024-04-14 19:12:41 -05:00
parent 88f9648544
commit 7a54dbd769

View file

@ -12,10 +12,10 @@
(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 "(%s)[[file:%s][%s]]\n"
(format-time-string "%Y-%m-%d"
(org-publish-find-date entry project))
entry
(org-publish-find-title entry project)))))
(setq org-publish-project-alist