aboutsummaryrefslogtreecommitdiff
path: root/content/posts/initial.org
blob: 43264252d47f353629b91d5ae31a8e1c47f74c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: "Writing Hugo blog in Org (File Export)"
author: ["Kaushal Modi"]
date: 2017-09-10
lastmod: 2100-12-21T00:00:00+00:00
tags: ["hugo", "org"]
categories: ["emacs"]
gamma: 10
---
* First heading within the post :hugo:
- This post will be exported as
  =content/posts/writing-hugo-blog-in-org-file-export.md=.
- Its title will be "Writing Hugo blog in Org".
- It will have /hugo/ and /org/ tags and /emacs/ as category.
- The /lastmod/ property in the front-matter is set automatically to
  the time of export.
- The menu item /identifier/ is auto-set.
- The menu item /weight/ and post /weight/ if needed have to be
  manually specified as shown above.
** A sub-heading under that heading
- It's draft state will be marked as =true= because of =#+hugo_draft:
  true=.

With the point _anywhere_, do =C-c C-e H h= to export this whole file
titled /Writing Hugo blog in Org/ to a Hugo post.

The exported Markdown has a little comment footer as set in the /Local
Variables/ section below.
* Demo Source Code

#+begin_src python
if __name__ == "__main__":
    print("Hello World")
#+end_src

    [[file:file]]notes
* COMMENT Local Variables                                           :ARCHIVE:
# Local Variables:
# org-hugo-footer: "\n\n[//]: # \"Exported with love from a post written in Org mode\"\n[//]: # \"- https://github.com/kaushalmodi/ox-hugo\""
# End: