diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2010-12-19 21:48:27 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2010-12-19 21:48:40 +0100 |
commit | 96beb76ddbaa565b7c112fe018dbbedf9c2a00a1 (patch) | |
tree | 6ed0c64fc13d833a01b684e570e15af51f04b28e /fripost-web.el | |
parent | 63a2e2627ec785e57a2fc26993bc0c6ae5b60b15 (diff) |
Move entire website to org-mode.
Diffstat (limited to 'fripost-web.el')
-rw-r--r-- | fripost-web.el | 53 |
1 files changed, 53 insertions, 0 deletions
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 "<div class=\"header\"> + <h1>Fripost</h1> +<a href=\"index.en.html\" class=\"translate\">Click here for english</a> +</div> + +<div class=\"navigation\"> + <a href=\"index.html\">Hem</a> + <a href=\"organisation.html\">Om</a> + <a href=\"faq.html\">FAQ</a> + <a href=\"medlemskap.html\">Gå med</a> + <a href=\"kontakt.html\">Kontakt</a> +<div class=\"clearer\"><span></span></div> +</div> + +<div class=\"container\"> +<div class=\"content\">" + :postamble "<div class=\"divider\"></div> + +<div class=\"footer\"> + <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/2.5/se/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-sa/2.5/se/80x15.png\" /></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\">This website</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://fripost.org/\" rel=\"cc:attributionURL\">Fripost - föreningen för fri e-post</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/2.5/se/\">Creative Commons Attribution-ShareAlike 2.5 Sweden License</a>.<br /> + Valid <a href=\"http://jigsaw.w3.org/css-validator/check/referer\">CSS</a> & <a href=\"http://validator.w3.org/check?uri=referer\">XHTML</a>. Design by <a href=\"http://arcsin.se\">Arcsin</a> +</div> + +</div> +</div>" + :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 |