I added this note from org mode
Trying an experiment with setting up a capture template so ox-hugo can add short notes to the site from Org Mode in Emacs.
I built up the ox-hugo capture sample to get my preferred SECTION/YEAR/MONTH/STUB folder layout.
Code Sample
(defun org-hugo-note-capture-template ()
"Returns `org-capture' template string for new site note."
(let* ((title (read-from-minibuffer "Title: "))
(fname (org-hugo-slug title))
(year (format-time-string "%Y"))
(month (format-time-string "%m")))
(mapconcat #'identity
`(
,(concat "* TODO " title)
":properties:"
,(concat ":export_hugo_bundle: "
(mapconcat #'identity (list year month fname) "/"))
":export_file_name: index"
":end:"
"%?\n")
"\n")))
Then the important bits of my capture template…
Code Sample
(use-package org
:custom
(org-capture-templates
(quote ("s" "Site")
("sn" "Note" entry
(file+olp+datetree bmw/org-site "Notes")
(function org-hugo-note-capture-template)))))
Eventually I got it right, and C-c c s n brought me to this buffer, where I’m editing a note that’s already longer than I usually intend these to be.
Code Sample
* Notes
:properties:
:export_hugo_section: note
:end:
** 2020
*** 2020-10 October
**** 2020-10-24 Saturday
***** TODO I added this note from org mode :emacs:
:properties:
:export_hugo_bundle: 2020/10/i-added-this-note-from-org-mode
:export_file_name: index
:end:
Trying an experiment: setting up a [[https://orgmode.org/manual/Capture-templates.html][capture template]] so [[https://ox-hugo.scripter.co/][ox-hugo]] can add short notes to the site.
Still loads to figure out — for example, how will I get cover images working? But at least I proved to myself that it works.
Back to fixing the broken IndieWeb mentions, which is why I opened my editor a couple of hours ago.
Activity Log
hackers.town: 2020-10-24 Sat 00:16
okay init the site, edit like the tutorial says, and run stack build and
did you just download GHC again?
oh no what are you doing
Progress 17/163?
Are you reinstalling everything you just installed?
Really making me miss the speedy build time of Jekyll here.
Done. stack exec hakyll build was mercifully swift. But heaven help me if I ever want to run this on a different machine. That was just over an hour from stack install hakyll.
Beat that, Hugo!
hackers.town: 2020-10-24 Sat 01:03
Install time grumbling aside, I’m looking at site.hs (sort of equivalent to config code like an Eleventy site) and I don’t know Haskell but I can tell what’s going on here without too much work.
I am intrigued.

hackers.town: 2020-10-24 Sat 12:20
Updating pop_os to 20.10.
Nothing quite like a progress bar at 99% for half an hour and counting.
It mostly feels like a better-tuned Ubuntu, but then you bump into a bit like this that clearly did not get so much attention.
hackers.town: 2020-10-24 Sat 15:41
Watched S01E01 of The Boys and despite knowing little about the show, every note was as loud and predictable as an AC/DC song.
That’s not bad, BTW. Great for when I’m in the mood for an AC/DC song.
hackers.town: 2020-10-24 Sat 18:56
I’m starting to think maybe the pop_os download is stuck.