Skip to content

Instantly share code, notes, and snippets.

@iani
Created May 19, 2011 10:45
Show Gist options
  • Save iani/980523 to your computer and use it in GitHub Desktop.
Save iani/980523 to your computer and use it in GitHub Desktop.
Preamble example for HTML project export from orgmode
(require 'org-publish)
(setq org-publish-project-alist
'(
("org-files-publish-local"
:org-publish-use-timestamps-flag nil
:base-directory "/Users/iani/Dropbox/sites/orgFiles/"
:base-extension "org"
:publishing-directory "/Users/iani/Dropbox/sites/htmlFiles"
:section-numbers nil
:table-of-contents nil
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 2
:auto-preamble nil
:preamble
"<a href=\"file:///Users/iani/Dropbox/sites/htmlFiles/index.html\"> THIS IS A TEST FOR THE PREAMBLE </a>"
:style "<link rel=\"stylesheet\" href=\"file:///Users/iani/Dropbox/sites/css/org.css\" type=\"text/css\"/>"
:auto-index t
:table-of-contents t
:link-home "file:///Users/iani/Dropbox/sites/htmlFiles/index.html"
:author "Ioannis Zannos"
:email "zannos AT gmail DOT com"
)
("attachments-publish-local"
:base-directory "/Users/iani/Dropbox/sites/orgFiles/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|zip"
:publishing-directory "/Users/iani/Dropbox/sites/htmlFiles"
:recursive t
:publishing-function org-publish-attachment
)
("org-files-publish-remote"
:base-directory "/Users/iani/Dropbox/sites/orgFiles/"
:base-extension "org"
:publishing-directory "/ssh:[email protected]:~/public_html/subdomains/org/"
:section-numbers nil
:table-of-contents nil
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 2
:auto-preamble nil
:style "<link rel=\"stylesheet\" href=\"http://org.igoumeninja.org/css/org.css\" type=\"text/css\"/>"
:auto-index t
:table-of-contents t
:link-home "http://org.igoumeninja.org"
:author "Ioannis Zannos"
:email "zannos AT gmail DOT com"
)
("attachments-publish-remote"
:base-directory "/Users/iani/Dropbox/sites/orgFiles/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|zip"
:publishing-directory "/ssh:[email protected]:~/public_html/subdomains/org/"
:recursive t
:publishing-function org-publish-attachment
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment