diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | publish.el | 24 |
3 files changed, 24 insertions, 4 deletions
@@ -1 +1,2 @@ -xhtml/
\ No newline at end of file +xhtml/ +gopher/
\ No newline at end of file @@ -5,4 +5,5 @@ all: .PHONY: clean clean: rm -rf xhtml/* + rm -rf gopher/* @@ -1,11 +1,14 @@ (add-to-list 'load-path "./") (require 'ox-publish) +(require 'ox-ascii) (require 'shittyweb-html) +;; Dont forgor https://github.com/gophernicus/gophernicus + (setq org-publish-project-alist '( - ("org" :components ("org-notes" "org-static")) - ("org-notes" + ("org" :components ("xhtml-notes" "xhtml-static")) + ("xhtml-notes" :base-directory "org/" :base-extension "org" :publishing-directory "xhtml/" @@ -19,7 +22,7 @@ :section-numbers t :time-stamp-file nil ) - ("org-static" + ("xhtml-static" :base-directory "org/" :base-extension "css\\|html\\|xhtml\\|py\\|png\\|jpg\\|gif\\|cgi" :include ("blog/feed.xml") @@ -27,6 +30,21 @@ :publishing-directory "xhtml/" :recursive t :publishing-function org-publish-attachment + ) + ("gopher-notes" + :base-directory "org/" + :base-extension "org" + :exclude "404.org\\|index.org" + :publishing-directory "gopher/" + :recursive t + :publishing-function org-ascii-publish-to-ascii + ) + ("gopher-static" + :base-directory "org/" + :base-extension "" + :publishing-directory "gopher/" + :recursive t + :publishing-function org-publish-attachment )) org-html-extension "xhtml" org-html-validation-link nil |