Things added to TODO-list
[fripost-web.git] / fripost-web.el
blobb7948ca2a9ce56e7f3133dcbc4f6cc16a07407e4
1 (require 'org-publish)
3 (setq org-publish-project-alist
4 `(
5 ("fripost-web-pages"
6 :base-directory ,(concat default-directory "/site/")
7 :base-extension "org"
8 :publishing-directory ,(concat default-directory "/publish/")
9 :exclude "/publish/"
10 :recursive t
11 :publishing-function org-publish-org-to-html
12 :preamble "<div class=\"header\">
13 <h1>Fripost</h1>
14 <a href=\"index.en.html\" class=\"translate\">Click here for English</a>
15 </div>
17 <div class=\"navigation\">
18 <a href=\"index.html\">Hem</a>
19 <a href=\"organisation.html\">Om</a>
20 <a href=\"faq.html\">FAQ</a>
21 <a href=\"medlemskap.html\">Gå med</a>
22 <a href=\"kontakt.html\">Kontakt</a>
23 <div class=\"clearer\"><span></span></div>
24 </div>
26 <div class=\"container\">
27 <div class=\"content\">"
28 :postamble "<div class=\"divider\"></div>
30 <div class=\"footer\">
31 <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 />
32 Valid <a href=\"http://jigsaw.w3.org/css-validator/check/referer\">CSS</a> &amp; <a href=\"http://validator.w3.org/check?uri=referer\">XHTML</a>. Design by <a href=\"http://arcsin.se\">Arcsin</a>
33 </div>
35 </div>
36 </div>"
37 :auto-preamble nil
38 :auto-postamble nil
39 :headline-levels 4 ; Just the default for this project.
40 :auto-preamble t
42 ;; sitemap
43 :auto-index t ; remove with newer org-mode
44 :index-title "Sitemap for fripost.org"
45 :auto-sitemap t
48 ("fripost-web-static"
49 :base-directory ,(concat default-directory "/site/")
50 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|txt"
51 :publishing-directory ,(concat default-directory "/publish/")
52 :exclude "/publish/"
53 :recursive t
54 :publishing-function org-publish-attachment
57 ("fripost-web" :components ("fripost-web-pages" "fripost-web-static"))
60 (provide 'fripost-web)
62 ;; M-x org-publish-project RET fripost-web