test new change
This commit is contained in:
parent
39007a6831
commit
064082bb32
1 changed files with 10 additions and 1 deletions
11
publish.el
11
publish.el
|
@ -9,6 +9,15 @@
|
||||||
|
|
||||||
(require 'org)
|
(require 'org)
|
||||||
(require 'ox-html)
|
(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
|
(setq org-publish-project-alist
|
||||||
'(
|
'(
|
||||||
("org-notes"
|
("org-notes"
|
||||||
|
@ -45,7 +54,7 @@
|
||||||
:html-postamble nil
|
:html-postamble nil
|
||||||
:auto-sitemap t
|
:auto-sitemap t
|
||||||
:sitemap-filename "index.org"
|
: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-sort-files anti-chronologically
|
||||||
:sitemap-title "Blog")
|
:sitemap-title "Blog")
|
||||||
("org-config"
|
("org-config"
|
||||||
|
|
Loading…
Add table
Reference in a new issue