From 0d247f46c2bc07671c66fe1e229e7f811ad88426 Mon Sep 17 00:00:00 2001 From: Dibyashanu Pati <> Date: Mon, 3 Mar 2025 16:47:38 +0530 Subject: [PATCH] added citation framework --- build_exocortex.sh | 3 +++ ox-hugo-exocortex.el | 4 ++++ 2 files changed, 7 insertions(+) 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.