From 4433e31e6dedee52ed3eb3cc0e007fc8464f5e4e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 22 Nov 2020 15:42:12 -0800 Subject: Exclude README from being built --- publish.el | 6 ++++-- 1 file 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 "") ("posts" -- cgit v1.2.3-54-g00ecf