Greetings, I have written a function to export org-mode subtrees as jekyll posts, http://juanreyero.com/open/org-jekyll/ The idea is that any entry in an org-publish project that has a :blog: keyword and an :on: property with a timestamp should be exported to a _posts directory with the year-month-day-title.html that jekyll expects, with the properties as front-matter.
I was very happy with it, until I realized that the levels of the headers in the exported file (h2, h3, etc) depend on the indentation of the subtree in the outline. I wanted to be able to add a :blog: subtree anywhere in my project's files, and get it always exported the same, regardless of where in the outline it is. Is there any reasonably simple way to overcome this problem? I am using: (org-narrow-to-subtree) (setq html (org-export-as-html nil nil nil 'string t nil)) to do the exporting (all the code is in github, http://github.com/juanre/org-jekyll). In summary, what I need is an org-export-as-html that treats the least indented outline as a 0-indentation. Best, Juan -- http://juanreyero.com/ http://unarueda.com _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode