This commit is contained in:
Chris Cochrun 2026-03-27 15:19:21 -05:00
parent 6c5664bd92
commit a57253353b

View file

@ -171,8 +171,6 @@
(defun chris/site-index-update (plist)
(save-excursion
(require 'denote)
(require 'denote-org)
(let ((warning-minimum-level :error)
(denote-directory "~/docs/site/content")
(file (concat (file-name-as-directory
@ -183,6 +181,21 @@
(denote-org-convert-links-to-file-type)
(save-buffer))))
(defun chris/site-premble (plist)
(let ((project (plist-get plist :title-of-project)))
(format "<nav>
<ul>
<li><strong>%s</strong></li>
</ul>
<ul>
<li><a href=\"/index\">Home</a></li>
<li><a href=\"/notes\">Notes</a></li>
<li><a href=\"/teaching\">Teaching</a></li>
</ul>
</nav>" (if (string=
(when (stringp project) project) "index")
"Chris Cochrun"))))
(setq org-publish-project-alist
`(("notes"
:base-directory "~/docs/site/content/notes/"
@ -190,10 +203,12 @@
:exclude "\\(_draft\\|_lesson\\|_sermon\\)"
:preparation-function quick/org-copy-notes
:recursive nil
:with-toc t
:with-broken-links t
:with-author nil
:with-timestamps nil
:section-numbers nil
:html-preamble chris/site-premble
:html-postamble nil
:html-validation-link nil
:exlude-tags "revealonly\\|noexport"
@ -215,6 +230,7 @@
:with-author nil
:with-timestamps nil
:section-numbers nil
:html-preamble chris/site-premble
:html-postamble nil
:html-validation-link nil
:exlude-tags "revealonly\\|noexport"
@ -234,6 +250,7 @@
:publishing-function org-publish-attachment)
("index"
:base-directory "~/docs/site/content"
:title-of-project "index"
:base-extension "org"
:preparation-function chris/site-index-update
:recursive nil
@ -242,6 +259,17 @@
:with-timestamps nil
:with-toc nil
:section-numbers nil
;; :html-preamble chris/site-premble
:html-preamble-format (("en" "<nav>
<ul>
<li><strong>Chris Cochrun</strong></li>
</ul>
<ul>
<li><a href=\"/index\">Home</a></li>
<li><a href=\"/notes\">Notes</a></li>
<li><a href=\"/teaching\">Teaching</a></li>
</ul>
</nav>"))
:html-postamble nil
:html-validation-link nil
:exlude-tags "revealonly\\|noexport"