From 97a6efb026d66df8024ebbbf9450f2f721d2d7e8 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 4 Mar 2017 16:11:11 +0800 Subject: [PATCH] add makefile to generate blog --- Makefile | 13 +++++++++++++ blog.el | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8d478c8 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +## Makefile to export org in blog file to html + +emacs ?= emacs + +OUT_DIR=/Users/peli3/Private/blog/_site + +all: + $(emacs) -Q --batch \ + -l ./blog.el \ + index.org \ + --eval '(org-publish-current-project t)' +clean: + rm -rf _site/* diff --git a/blog.el b/blog.el index a0bb36b..7d21236 100644 --- a/blog.el +++ b/blog.el @@ -78,7 +78,7 @@ :html-head-include-scripts nil) ("org-static" :base-directory ,root-dir - :base-extension "css\\|js\\|png\\|gif\\|pdf\\|mp3\\|ogg\\|swf" + :base-extension "css\\|js\\|png\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|el" :publishing-directory ,publish-dir :recursive t :publishing-function org-publish-attachment -- 2.11.0