blog/.export.el
Lucien Cartier-Tilet 3333d3a6ed
Some checks failed
continuous-integration/drone/push Build is failing
[CI] Better CI
The `.export.el' script will export automatically all my blog posts
from `content-org/blog.org' to multiple `.md' files in `content/'.
Manual export is no longer required!
2020-09-03 20:26:35 +02:00

13 lines
432 B
EmacsLisp
Executable File

#!/usr/bin/emacs --script
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
(package-install 'ox-hugo)
(require 'ox-hugo)
(setq org-confirm-babel-evaluate nil
org-html-validation-link nil)
(let* ((file (expand-file-name "content-org/blog.org")))
(with-current-buffer (find-file file)
(org-hugo-export-wim-to-md t nil nil t)))