diff --git a/build_exocortex.sh b/build_exocortex.sh index d0073e4..2321871 100755 --- a/build_exocortex.sh +++ b/build_exocortex.sh @@ -4,6 +4,9 @@ rm -rf ./public/exocortex-hugo-md/public/* rm -rf ./public/exocortex-hugo-md/content/ +# sync bibtex references +rsync -avi ~/projects/thought_garden/References.bib ./public/exocortex-hugo-md/References.bib + # create hugo md files using ox-hugo emacs -Q --batch -l ox-hugo-exocortex.el diff --git a/ox-hugo-exocortex.el b/ox-hugo-exocortex.el index fe16f8f..5b66667 100644 --- a/ox-hugo-exocortex.el +++ b/ox-hugo-exocortex.el @@ -29,6 +29,10 @@ ) (setq org-roam-directory "~/projects/thought_garden/") +;; See https://ox-hugo.scripter.co/doc/org-cite-citations/ +(with-eval-after-load 'ox-hugo + (plist-put org-hugo-citations-plist :bibliography-section-heading "Bibliography")) + ;; modified this function from https://github.com/kaushalmodi/ox-hugo/discussions/585#discussioncomment-2335203 (defun ox-hugo/export-all (&optional org-files-root-dir dont-recurse) "Export all Org files (including nested) under ORG-FILES-ROOT-DIR.