would be the following:
#+begin_src org -n
#+hugo_base_dir: .
-,* Site Root
-,** Homepage
+,* Homepage
:PROPERTIES:
:EXPORT_HUGO_SECTION:
:EXPORT_FILE_NAME: _index
:EXPORT_HUGO_MENU: :menu "main"
:END:
This is the home of my blog!
-,** Blog Posts
+,* Blog Posts
:PROPERTIES:
:EXPORT_HUGO_SECTION: posts
:END:
-,*** My Blog Homepage
+,** My Blog Homepage
:PROPERTIES:
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
Man, look at all my blog posts.
-,*** One Bad Night
+,** One Bad Night
:PROPERTIES:
:EXPORT_FILE_NAME: bad-night
:END:
To illustrate, let's assume you want to extend the previous site definition with
a section about fishsticks.
-#+begin_src org -n 25
-,** Fishsticks
+#+begin_src org -n 24
+,* Fishsticks
:PROPERTIES:
:EXPORT_HUGO_SECTION: fishsticks
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
This section devoted to Orson Wells, R.I.P.
-,*** Van De Camps
+,** Van De Camps
:PROPERTIES:
:EXPORT_FILE_NAME: van-de-camps
:END:
If this is fish, I'll be a monkey's uncle.
-,*** Gortons
+,** Gortons
:PROPERTIES:
:EXPORT_FILE_NAME: gortons
:END:
*hugotest.org* file to create a complete blog structure with tags and categories:
#+begin_src org -n
#+hugo_base_dir: .
-,* Site Root
-,** Homepage
+,* Homepage
:PROPERTIES:
:EXPORT_HUGO_SECTION:
:EXPORT_FILE_NAME: _index
:EXPORT_HUGO_MENU: :menu "main"
:END:
This is the home of my blog!
-,** Blog Posts
+,* Blog Posts
:PROPERTIES:
:EXPORT_HUGO_SECTION: posts
:END:
-,*** My Blog Homepage
+,** My Blog Homepage
:PROPERTIES:
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
Man, look at all my blog posts.
-,*** One Bad Night :@updates:herpes:fear:
+,** One Bad Night :@updates:herpes:fear:
:PROPERTIES:
:EXPORT_FILE_NAME: bad-night
:END:
Someone gave me herpes! Oh no!
-,** Fishsticks
+,* Fishsticks
:PROPERTIES:
:EXPORT_HUGO_SECTION: fishsticks
:END:
-,*** Fishsticks Home
+,** Fishsticks Home
:PROPERTIES:
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
This section devoted to Orson Wells, R.I.P.
-,*** Van De Camps :@reviews:fear:
+,** Van De Camps :@reviews:fear:
:PROPERTIES:
:EXPORT_FILE_NAME: van-de-camps
:END:
If this is fish, I'll be a monkey's uncle.
-,*** Gortons :@reviews:herpes:
+,** Gortons :@reviews:herpes:
:PROPERTIES:
:EXPORT_FILE_NAME: gortons
:END:
{{< highlight org "linenos=table, linenostart=1" >}}
#+hugo_base_dir: .
-* Site Root
-** Homepage
+* Homepage
:PROPERTIES:
:EXPORT_HUGO_SECTION:
:EXPORT_FILE_NAME: _index
:EXPORT_HUGO_MENU: :menu "main"
:END:
This is the home of my blog!
-** Blog Posts
+* Blog Posts
:PROPERTIES:
:EXPORT_HUGO_SECTION: posts
:END:
-*** My Blog Homepage
+** My Blog Homepage
:PROPERTIES:
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
Man, look at all my blog posts.
-*** One Bad Night
+** One Bad Night
:PROPERTIES:
:EXPORT_FILE_NAME: bad-night
:END:
To illustrate, let's assume you want to extend the previous site definition with
a section about fishsticks.
-{{< highlight org "linenos=table, linenostart=25" >}}
-** Fishsticks
+{{< highlight org "linenos=table, linenostart=24" >}}
+* Fishsticks
:PROPERTIES:
:EXPORT_HUGO_SECTION: fishsticks
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
This section devoted to Orson Wells, R.I.P.
-*** Van De Camps
+** Van De Camps
:PROPERTIES:
:EXPORT_FILE_NAME: van-de-camps
:END:
If this is fish, I'll be a monkey's uncle.
-*** Gortons
+** Gortons
:PROPERTIES:
:EXPORT_FILE_NAME: gortons
:END:
{{< highlight org "linenos=table, linenostart=1" >}}
#+hugo_base_dir: .
-* Site Root
-** Homepage
+* Homepage
:PROPERTIES:
:EXPORT_HUGO_SECTION:
:EXPORT_FILE_NAME: _index
:EXPORT_HUGO_MENU: :menu "main"
:END:
This is the home of my blog!
-** Blog Posts
+* Blog Posts
:PROPERTIES:
:EXPORT_HUGO_SECTION: posts
:END:
-*** My Blog Homepage
+** My Blog Homepage
:PROPERTIES:
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
Man, look at all my blog posts.
-*** One Bad Night :@updates:herpes:fear:
+** One Bad Night :@updates:herpes:fear:
:PROPERTIES:
:EXPORT_FILE_NAME: bad-night
:END:
Someone gave me herpes! Oh no!
-** Fishsticks
+* Fishsticks
:PROPERTIES:
:EXPORT_HUGO_SECTION: fishsticks
:END:
-*** Fishsticks Home
+** Fishsticks Home
:PROPERTIES:
:EXPORT_HUGO_MENU: :menu "main"
:EXPORT_FILE_NAME: _index
:END:
This section devoted to Orson Wells, R.I.P.
-*** Van De Camps :@reviews:fear:
+** Van De Camps :@reviews:fear:
:PROPERTIES:
:EXPORT_FILE_NAME: van-de-camps
:END:
If this is fish, I'll be a monkey's uncle.
-*** Gortons :@reviews:herpes:
+** Gortons :@reviews:herpes:
:PROPERTIES:
:EXPORT_FILE_NAME: gortons
:END: