ox-hugo frontmatter set to yaml

This commit is contained in:
Dibyashanu Pati 2025-03-19 03:18:47 +05:30
parent 2d160adc9a
commit 9d309428fa

View file

@ -26,6 +26,7 @@
:config :config
(setq org-hugo-base-dir "~/projects/cosmicflow.space/public/exocortex-hugo-md" ) (setq org-hugo-base-dir "~/projects/cosmicflow.space/public/exocortex-hugo-md" )
(setq org-hugo-default-section-directory "./") (setq org-hugo-default-section-directory "./")
(setq org-hugo-front-matter-format "yaml")
) )
(setq org-roam-directory "~/projects/thought_garden/") (setq org-roam-directory "~/projects/thought_garden/")
@ -69,7 +70,7 @@ Example usage in Emacs Lisp: (ox-hugo/export-all \"~/org\")."
(dolist (org-file org-files) (dolist (org-file org-files)
(with-current-buffer (find-file-noselect org-file) (with-current-buffer (find-file-noselect org-file)
(message (format "[ox-hugo/export-all file %d/%d] Exporting %s" cnt num-files org-file)) (message (format "[ox-hugo/export-all file %d/%d] Exporting %s" cnt num-files org-file))
(org-hugo-export-wim-to-md :all-subtrees) (org-hugo-export-wim-to-md org-file)
(setq cnt (1+ cnt)))) (setq cnt (1+ cnt))))
(message "Done!"))))) (message "Done!")))))
(ox-hugo/export-all org-roam-directory) (ox-hugo/export-all org-roam-directory)