Skip to content

Multiple blogs #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
deerpig opened this issue Jul 22, 2015 · 1 comment
Open

Multiple blogs #4

deerpig opened this issue Jul 22, 2015 · 1 comment

Comments

@deerpig
Copy link

deerpig commented Jul 22, 2015

This is not so much an issue as a question. I would like to use ox-jekyll-subtree for multiple blogs, that are published separately. The simplest way I can think of doing this is to set #+BLOGDIR and #+BASEURL in each file and write a script to check to see if these properties are set and if they are, then setq endless/blog-base-url and endless/blog-dir.

Is there a simple way of grabbing the value of a property in orgmode? I haven't written any elisp in 7 years and am a bit rusty.

@Malabarba
Copy link
Owner

The simplest way I can think of doing this is to set #+BLOGDIR and #+BASEURL in each file and write a script to check to see if these properties are set and if they are, then setq endless/blog-base-url and endless/blog-dir.

Sounds like we could get that by adding something like this to the outermost let of endless/export-to-blog.

(endless/blog-dir (or (org-entry-get (point) "OX_BLOG_DIR")
                                 endless/blog-dir))

And similarly for the BASEURL. This way you could even set it inside a subtree.

Is there a simple way of grabbing the value of a property in orgmode? I haven't written any elisp in 7 years and am a bit rusty.

(org-entry-get (point) "JEKYLL_LAYOUT")

Let me know if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants