Skip to content

Instantly share code, notes, and snippets.

@creamidea
Last active December 15, 2015 20:40
Show Gist options
  • Save creamidea/5319960 to your computer and use it in GitHub Desktop.
Save creamidea/5319960 to your computer and use it in GitHub Desktop.
The fundamentals of publishing html are described in the HTML publishing tutorial on worg. I am assuming that you have a basic working org publishing setup. By default org produces complete web pages. However, as I am using Jekyll I am only really interested in the section of the page between the <body> tags, as Jekyll produces the rest. Most th…
(setq org-publish-project-alist
'(
("org-ianbarton"
;; Path to your org files.
:base-directory "~/devel/ianbarton/org/"
:base-extension "org"
;; Path to your Jekyll project.
:publishing-directory "~/devel/ianbarton/jekyll/"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4
:html-extension "html"
:body-only t ;; Only export section between <body> </body>
)
("org-static-ian"
:base-directory "~/devel/ianbarton/org/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
:publishing-directory "~/devel/ianbarton/"
:recursive t
:publishing-function org-publish-attachment)
("ian" :components ("org-ianbarton" "org-static-ian"))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment