emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Need help exporting subtrees to html
@ 2009-12-27 16:34 Juan Reyero
  2009-12-27 18:35 ` Carsten Dominik
  0 siblings, 1 reply; 10+ messages in thread
From: Juan Reyero @ 2009-12-27 16:34 UTC (permalink / raw)
  To: org-mode Mailing List

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-01-01 13:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-27 16:34 Need help exporting subtrees to html Juan Reyero
2009-12-27 18:35 ` Carsten Dominik
2009-12-27 19:31   ` Juan Reyero
2009-12-31  8:15     ` Carsten Dominik
2009-12-31 13:50       ` Juan Reyero
2009-12-31 17:15         ` Eric Schulte
2009-12-31 17:17           ` Eric Schulte
2009-12-31 18:02           ` Juan Reyero
2009-12-31 19:51             ` Eric Schulte
2010-01-01 13:33               ` Juan Reyero

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).