Let this be ox-hugo

master
Kaushal Modi 9 years ago
parent 0e627431b7
commit 2f09709440
  1. 7
      README.org
  2. 8
      ox-hugo.el

@ -1,6 +1,8 @@
*!! Package not yet meant for general public consumption !!*
What this package is planned to do:
This package will be an org exporter backend that exports =org-mode= to =markdown= with [[https://gohugo.io/][=hugo=]] -required TOML front-matter. =hugo= also supports YAML front-matter but planning to stick with TOML for now.
What this package is planned to do --
- Write blog posts in =org-mode=.
- For *current subtree*
@ -8,6 +10,7 @@ What this package is planned to do:
- Do that with each save.
* TODO [0/5]
- [ ] Have =ox-hugo= be a backend derived from =ox-gfm= (=ox-gfm= needed at least for table support).
- [ ] Parse org tags to set the hugo post tags/categories in fm.
- [ ] Parse org heading to set the hugo post title in fm.
- [ ] Use title to auto-generate file name string.
@ -17,6 +20,6 @@ What this package is planned to do:
- [ ] Call =hugo= after each save.
* References
Currently the =org-hugo.el= just contains slightly re-factored code snippets from the below 2 sources:
Currently the =ox-hugo.el= just contains slightly re-factored code snippets from the below 2 sources:
- http://www.holgerschurig.de/en/emacs-blog-from-org-to-hugo/
- http://whyarethingsthewaytheyare.com/setting-up-the-blog/

@ -1,10 +1,10 @@
;;; org-hugo.el --- Write hugo blog posts in org-mode -*- lexical-binding: t -*-
;;; ox-hugo.el --- Write hugo blog posts in org-mode -*- lexical-binding: t -*-
;;; Commentary:
;;
;; http://www.holgerschurig.de/en/emacs-blog-from-org-to-hugo/
(defvar hugo-content-dir (concat (getenv "HOME") "/sandbox/org/org-hugo/content/")
(defvar hugo-content-dir (concat (getenv "HOME") "/sandbox/org/ox-hugo/content/")
"Path to Hugo's content directory")
(defun hugo-ensure-property (property)
@ -148,6 +148,6 @@ Returns list of properties that still must be filled in"
(while (re-search-forward (car reps) nil t)
(replace-match (cdr reps))))))))
(provide 'org-hugo)
(provide 'ox-hugo)
;;; org-hugo.el ends here
;;; ox-hugo.el ends here
Loading…
Cancel
Save