aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Makefile1
-rw-r--r--publish.el24
3 files changed, 24 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 5b224a5..443fb24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-xhtml/ \ No newline at end of file
+xhtml/
+gopher/ \ No newline at end of file
diff --git a/Makefile b/Makefile
index 449c79f..05bd182 100644
--- a/Makefile
+++ b/Makefile
@@ -5,4 +5,5 @@ all:
.PHONY: clean
clean:
rm -rf xhtml/*
+ rm -rf gopher/*
diff --git a/publish.el b/publish.el
index ad5a425..b8fdcf0 100644
--- a/publish.el
+++ b/publish.el
@@ -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