(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 "
"
: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