aboutsummaryrefslogtreecommitdiffstats
path: root/fripost-web.el
blob: e39a32f86ad023ff40757c95d0b5271b7f055066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
(require 'org-publish)

;; Force publishing, also of files that are not changed. 
;; (setq org-publish-use-timestamps-flag nil)

(setq org-publish-project-alist
      `(
        ("fripost-web-pages"
         :base-directory ,(concat default-directory "/site/")
         :base-extension "org"
         :publishing-directory ,(concat default-directory "/publish/")
         :exclude "/publish/"
         :recursive t
         :publishing-function org-publish-org-to-html
         :html-preamble "<div class=\"header\">
  <h1><img src=\"images/logo2011_top.png\" alt=\"fripost.org | demokratisk e-post\" /></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\">"
         :html-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=\"images/cc80x15.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> &amp; <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

         ;; sitemap
         :auto-index t ; remove with newer org-mode
         :index-title "Sitemap for fripost.org"
         :auto-sitemap t
         )

        ("fripost-web-static"
         :base-directory ,(concat default-directory "/site/")
         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|eps\\|pdf\\|mp3\\|ogg\\|txt\\|asc"
         :publishing-directory ,(concat default-directory "/publish/")
         :exclude "/publish/"
         :recursive t
         :publishing-function org-publish-attachment
         )

        ("fripost-web" :components ("fripost-web-pages" "fripost-web-static"))
      ))

(provide 'fripost-web)

;; M-x org-publish-project RET fripost-web