gabrielgio.me @ 0cae0bd94693d166a060af4652a2d8b95c335494

 1---
 2title: "Writing Hugo blog in Org (File Export)"
 3author: ["Kaushal Modi"]
 4date: 2017-09-10
 5lastmod: 2100-12-21T00:00:00+00:00
 6tags: ["hugo", "org"]
 7categories: ["emacs"]
 8gamma: 10
 9---
10* First heading within the post :hugo:
11- This post will be exported as
12  =content/posts/writing-hugo-blog-in-org-file-export.md=.
13- Its title will be "Writing Hugo blog in Org".
14- It will have /hugo/ and /org/ tags and /emacs/ as category.
15- The /lastmod/ property in the front-matter is set automatically to
16  the time of export.
17- The menu item /identifier/ is auto-set.
18- The menu item /weight/ and post /weight/ if needed have to be
19  manually specified as shown above.
20** A sub-heading under that heading
21- It's draft state will be marked as =true= because of =#+hugo_draft:
22  true=.
23
24With the point _anywhere_, do =C-c C-e H h= to export this whole file
25titled /Writing Hugo blog in Org/ to a Hugo post.
26
27The exported Markdown has a little comment footer as set in the /Local
28Variables/ section below.
29* Demo Source Code
30
31#+begin_src python
32if __name__ == "__main__":
33    print("Hello World")
34#+end_src
35
36    [[file:file]]notes
37* COMMENT Local Variables                                           :ARCHIVE:
38# Local Variables:
39# org-hugo-footer: "\n\n[//]: # \"Exported with love from a post written in Org mode\"\n[//]: # \"- https://github.com/kaushalmodi/ox-hugo\""
40# End: