xcodebuild / blog-admin

Write blog in emacs with hexo/org-page/nikola
GNU General Public License v2.0
229 stars 24 forks source link

Support format configuration for new posts with nikola #31

Closed grauschnabel closed 8 years ago

grauschnabel commented 8 years ago

This is because I use orgmode instead of reStructuredText for the posts I create.

now I simply do

(setq blog-admin-backend-nikola-post-format "orgmode")

in my init.el and it works fine.

(we have to use the orgmode plugin in order to use orgmode with nikola, but thats a simple installation, this pull should work for all formats supported by nikola)

punchagan commented 8 years ago

I also use orgmode posts, and just have the org format before any others in my Nikola conf file.

This PR would change the current behavior for users, but I'm not sure there are too many others using it other than the two of us. Or setting the default to nil and using -F only if post-format is non-nil should work. What do you think?

In any case, please also add a line in the README.

grauschnabel commented 8 years ago

I didn't know that changing it in the conf changes this behaviour... so this is fine for me.

I will remove the fork you are right in this case its useless.

punchagan commented 8 years ago

I think it would be nice to have a way of specifying formats by using a prefix argument or something, but a config variable isn't all that useful, IMO.

Thanks for your contribution, though!