[CI] Better CI
Some checks failed
continuous-integration/drone/push Build is failing

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!
This commit is contained in:
2020-09-03 20:23:30 +02:00
parent 8c18deb189
commit 3333d3a6ed
5 changed files with 15 additions and 1165 deletions

12
.export.el Executable file
View File

@@ -0,0 +1,12 @@
#!/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)))