added citation framework

This commit is contained in:
Dibyashanu Pati 2025-03-03 16:47:38 +05:30
parent 7e1fc08214
commit 0d247f46c2
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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.