I posted I added this note from org mode on Saturday, 24 October, 2020

Note Emacs OrgMode

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.

I built up the ox-hugo capture sample to get my preferred SECTION/YEAR/MONTH/STUB folder layout.

(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)
                 ,(concat ":export_hugo_bundle: "
                          (mapconcat #'identity (list year month fname) "/"))
                 ":export_file_name: index"

Then the important bits of my capture template…

(use-package org
   (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.

* Notes
:export_hugo_section: note
** 2020
*** 2020-10 October
**** 2020-10-24 Saturday
***** TODO I added this note from org mode                        :emacs:
:export_hugo_bundle: 2020/10/i-added-this-note-from-org-mode
:export_file_name: index

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.


Got a comment? A question? More of a comment than a question? Talk to me about this note!

Indieweb Social

Did you mention this somewhere? I'd love it if you sent me the link!

disclaimer about timing

Mentions are sent to webmention.io. I fetch the latest mentions when building the site, so I may not see your feedback right away. Especially if my site's broken, which is often the case.

Public replies and mentions might be shared on the site, but I try to do a little quality check first.

Site Links