From 96beb76ddbaa565b7c112fe018dbbedf9c2a00a1 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 19 Dec 2010 21:48:27 +0100 Subject: Move entire website to org-mode. --- fripost-web.el | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 fripost-web.el (limited to 'fripost-web.el') diff --git a/fripost-web.el b/fripost-web.el new file mode 100644 index 0000000..25a4692 --- /dev/null +++ b/fripost-web.el @@ -0,0 +1,53 @@ +(require 'org-publish) + +(setq org-publish-project-alist + `( + ("fripost-web-pages" + :base-directory ,default-directory + :base-extension "org" + :publishing-directory ,(concat default-directory "../publish/") + :recursive t + :publishing-function org-publish-org-to-html + :preamble "
+

Fripost

+Click here for english +
+ +
+ Hem + Om + FAQ + Gå med + Kontakt +
+
+ +
+
" + :postamble "
+ + + +
+
" + :auto-preamble nil + :auto-postamble nil + :headline-levels 4 ; Just the default for this project. + :auto-preamble t + ) + + ("fripost-web-static" + :base-directory ,default-directory + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg" + :publishing-directory ,(concat default-directory "../publish/") + :recursive t + :publishing-function org-publish-attachment + ) + + ("fripost-web" :components ("fripost-web-pages" "fripost-web-static")) + )) + +;; M-x org-publish-project RET org -- cgit v1.2.3