masasam / emacs-easy-hugo

Emacs major mode for managing hugo
https://gohugo.io/tools/editors/#emacs
GNU General Public License v3.0
362 stars 26 forks source link

Add support for writing articles in org mode #2

Closed heikkil closed 7 years ago

heikkil commented 7 years ago

This adds code that makes it possible to give a filename for a new article that ends in '.org' in addition to '.md' ending.

Hugo 0.19 processes org-mode articles automatically, but it does not generate org style headers. The code here bypasses command line 'hugo new' command for org mode articles and generates draft headers in correct format. The header lines are hard coded. I guess they could be made easier to customise.

masasam commented 7 years ago

@heikkil Special thanks this great pull request. I did not understand about org-mode well, so I was saved.