aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-11-22 15:42:12 -0800
committerGravatar Tom Willemse2020-11-22 15:44:09 -0800
commit4433e31e6dedee52ed3eb3cc0e007fc8464f5e4e (patch)
tree9642d99b354086da009d43ecefef7d26f07ddb34
parent88de93b36013ffa9552fc9fb4e7af64aab803151 (diff)
downloadnew-ryuslash.org-4433e31e6dedee52ed3eb3cc0e007fc8464f5e4e.tar.gz
new-ryuslash.org-4433e31e6dedee52ed3eb3cc0e007fc8464f5e4e.zip
Exclude README from being built
-rw-r--r--publish.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/publish.el b/publish.el
index 7823a46..fc520a0 100644
--- a/publish.el
+++ b/publish.el
@@ -65,12 +65,14 @@
(setq org-html-doctype "html5")
(setq org-publish-project-alist
- '(("index"
+ `(("index"
:base-directory "."
:base-extension "org"
:publishing-directory "public/"
:recursive t
- :exclude "^posts/"
+ :exclude ,(rx string-start
+ (or "posts/"
+ (and "README.org" string-end)))
:publishing-function org-html-publish-to-html
:html-head "<link rel=\"stylesheet\" href=\"/assets/css/main.css\" type=\"text/css\"/>")
("posts"