Exclude README from being built

This commit is contained in:
Tom Willemse 2020-11-22 15:42:12 -08:00
parent 88de93b360
commit 4433e31e6d

View file

@ -65,12 +65,14 @@
(setq org-html-doctype "html5") (setq org-html-doctype "html5")
(setq org-publish-project-alist (setq org-publish-project-alist
'(("index" `(("index"
:base-directory "." :base-directory "."
:base-extension "org" :base-extension "org"
:publishing-directory "public/" :publishing-directory "public/"
:recursive t :recursive t
:exclude "^posts/" :exclude ,(rx string-start
(or "posts/"
(and "README.org" string-end)))
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:html-head "<link rel=\"stylesheet\" href=\"/assets/css/main.css\" type=\"text/css\"/>") :html-head "<link rel=\"stylesheet\" href=\"/assets/css/main.css\" type=\"text/css\"/>")
("posts" ("posts"