Emacs

Setting up this blog

This blog is written in org-mode in Emacs, built by Hugo (Academic theme) and deployed via ox-hugo (see below for configuration) on github pages. ox-hugo configuration ;; ——– Hugo ——– (require ‘ox-hugo) (setq org-hugo-default-section-directory "post") ;; Populates only the EXPORT_FILE_NAME property in the inserted headline. (with-eval-after-load ‘org-capture (defun org-hugo-new-subtree-post-capture-template () "Returns org-capture' template string for new Hugo post. Seeorg-capture-templates’ for more information." (let* ((title (read-from-minibuffer "Post Title: ")) ;Prompt to enter the post title (fname (org-hugo-slug title))) (mapconcat #‘identity `( ,(concat "* TODO " title) ":PROPERTIES:" ,(concat ":EXPORT_FILE_NAME: " fname) ":END:" "%?