From a57253353b19cdf91a8424620b7fef62a297cbe2 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 27 Mar 2026 15:19:21 -0500 Subject: [PATCH] nav --- org-publish.el | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/org-publish.el b/org-publish.el index 16708467..106b0bba 100644 --- a/org-publish.el +++ b/org-publish.el @@ -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 "" (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" "")) :html-postamble nil :html-validation-link nil :exlude-tags "revealonly\\|noexport"