summaryrefslogtreecommitdiff
path: root/modules/org-export-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-14 00:06:45 -0600
committerCraig Jennings <c@cjennings.net>2026-02-14 00:06:45 -0600
commit78c3ef3c2008f72f9e46f30447c68d627bd693cd (patch)
tree9d4cc7f523db907c7bdf99e654cd1ca47b2f8551 /modules/org-export-config.el
parent48a2d4cc31b2825b39d5efdf619189c23c55a659 (diff)
feat(hugo): extract hugo-config module with C-; h keybindings
Standalone module for ox-hugo blog workflow. One-file-per-post structure with keybindings for new post, export, open dir (dirvish and system file manager), and toggle draft.
Diffstat (limited to 'modules/org-export-config.el')
-rw-r--r--modules/org-export-config.el30
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/org-export-config.el b/modules/org-export-config.el
index 2e921174..33e170f5 100644
--- a/modules/org-export-config.el
+++ b/modules/org-export-config.el
@@ -144,36 +144,6 @@
(?d "to docx and open" org-pandoc-export-to-docx-and-open)
(?z "to pdf and open (Zathura)" my/org-pandoc-export-to-pdf-and-open))))
-;; ---------------------------------- ox-hugo ----------------------------------
-;; Export Org subtrees to Hugo-compatible Markdown.
-;; Each Org heading with :EXPORT_FILE_NAME: becomes a separate Hugo post.
-;; Source file: ~/projects/website/content-org/log.org
-
-(use-package ox-hugo
- :after ox
- :config
- (defvar org-capture-templates)
-
- (defun cj/org-hugo-new-post-capture-template ()
- "Return a new Hugo post subtree template for org-capture.
-Prompts for title, generates slug, and sets export date to today."
- (let* ((title (read-from-minibuffer "Post Title: "))
- (fname (org-hugo-slug title)))
- (mapconcat #'identity
- `(,(concat "* TODO " title)
- ":PROPERTIES:"
- ,(concat ":EXPORT_FILE_NAME: " fname)
- ,(concat ":EXPORT_DATE: "
- (format-time-string "%Y-%m-%d"))
- ":END:"
- "%?\n")
- "\n")))
-
- (add-to-list 'org-capture-templates
- '("h" "Hugo post" entry
- (file "~/projects/website/content-org/log.org")
- (function cj/org-hugo-new-post-capture-template))))
-
;; github flavored markdown
;; (use-package ox-gfm
;; :after ox)