(require 'org-publish)
(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
: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\\|pdf\\|mp3\\|ogg\\|txt"
: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