Commit 8156a8da authored by Kaushal Modi's avatar Kaushal Modi

Another nesting example

parent e337803f
#+hugo_base_dir: ../
#+author:
* Ox-hugo Issue 210 (Articles section)
:PROPERTIES:
:EXPORT_HUGO_SECTION: ox-hugo-issue-210b
:END:
** Articles Landing Index page
:PROPERTIES:
:EXPORT_FILE_NAME: _index
:END:
Landing page.
- [[./sub1][Sub-section 1]]
- [[./sub2][Sub-section 2]]
/(Above manually linking is a quick hack. Ideally you would get the
links of nested branch bundles in the Hugo layout.)/
** Articles sub-section 1
:PROPERTIES:
:EXPORT_HUGO_SECTION: ox-hugo-issue-210b/sub1
:END:
*** Articles sub-section 1 Index page
:PROPERTIES:
:EXPORT_FILE_NAME: _index
:HUGO_MENU: :menu main
:END:
Sub-section 1.
I agree that ~ox-hugo-issue-210b~ has to be repeated here. But really,
is it practically that inconvenient to repeat just the section names?
[[https://github.com/kaushalmodi/ox-hugo/issues/210#issuecomment-424494895][Ref]]
[[https://scripter.co/hugo-leaf-and-branch-bundles/][scripter.co -- Leaf and Branch Bundles]]
*** First Article Bundle
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: first-article
:END:
**** First Article
:PROPERTIES:
:EXPORT_FILE_NAME: index
:END:
Content of First Article. This has to be a *Leaf* bundle (~index~, not
~_index~).
**** First Article Section One
:PROPERTIES:
:EXPORT_FILE_NAME: section-one
:END:
Content of First Article Section One
**** First Article Section Two
:PROPERTIES:
:EXPORT_FILE_NAME: section-two
:END:
Content of First Article Section Two
*** Second Article Leaf Bundle
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: second-article
:END:
**** Second Article
:PROPERTIES:
:EXPORT_FILE_NAME: index
:END:
Content of Second Article. This has to be a *Leaf* bundle (~index~, not
~_index~).
**** Second Article Section One
:PROPERTIES:
:EXPORT_FILE_NAME: section-one
:END:
Content of Second Article Section One
**** Second Article Section Two
:PROPERTIES:
:EXPORT_FILE_NAME: section-two
:END:
Content of Second Article Section Two
** Articles sub-section 2
:PROPERTIES:
:EXPORT_HUGO_SECTION: ox-hugo-issue-210b/sub2
:END:
*** Articles sub-section 2 Index page
:PROPERTIES:
:EXPORT_FILE_NAME: _index
:HUGO_MENU: :menu main
:END:
Sub-section 2.
I agree that ~ox-hugo-issue-210b~ has to be repeated here. But really,
is it practically that inconvenient to repeat just the section names?
[[https://github.com/kaushalmodi/ox-hugo/issues/210#issuecomment-424494895][Ref]]
[[https://scripter.co/hugo-leaf-and-branch-bundles/][scripter.co -- Leaf and Branch Bundles]]
*** First Article Bundle
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: first-article
:END:
**** First Article
:PROPERTIES:
:EXPORT_FILE_NAME: index
:END:
Content of First Article. This has to be a *Leaf* bundle (~index~, not
~_index~).
**** First Article Section One
:PROPERTIES:
:EXPORT_FILE_NAME: section-one
:END:
Content of First Article Section One
**** First Article Section Two
:PROPERTIES:
:EXPORT_FILE_NAME: section-two
:END:
Content of First Article Section Two
*** Second Article Leaf Bundle
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: second-article
:END:
**** Second Article
:PROPERTIES:
:EXPORT_FILE_NAME: index
:END:
Content of Second Article. This has to be a *Leaf* bundle (~index~, not
~_index~).
**** Second Article Section One
:PROPERTIES:
:EXPORT_FILE_NAME: section-one
:END:
Content of Second Article Section One
**** Second Article Section Two
:PROPERTIES:
:EXPORT_FILE_NAME: section-two
:END:
Content of Second Article Section Two
+++
title = "Articles Landing Index page"
draft = false
+++
Landing page.
- [Sub-section 1](./sub1)
- [Sub-section 2](./sub2)
_(Above manually linking is a quick hack. Ideally you would get the
links of nested branch bundles in the Hugo layout.)_
+++
title = "Articles sub-section 1 Index page"
draft = false
+++
Sub-section 1.
I agree that `ox-hugo-issue-210b` has to be repeated here. But really,
is it practically that inconvenient to repeat just the section names?
[Ref](https://github.com/kaushalmodi/ox-hugo/issues/210#issuecomment-424494895)
[scripter.co -- Leaf and Branch Bundles](https://scripter.co/hugo-leaf-and-branch-bundles/)
+++
title = "First Article"
draft = false
+++
Content of First Article. This has to be a **Leaf** bundle (`index`, not
`_index`).
+++
title = "First Article Section One"
draft = false
+++
Content of First Article Section One
+++
title = "First Article Section Two"
draft = false
+++
Content of First Article Section Two
+++
title = "Second Article"
draft = false
+++
Content of Second Article. This has to be a **Leaf** bundle (`index`, not
`_index`).
+++
title = "Second Article Section One"
draft = false
+++
Content of Second Article Section One
+++
title = "Second Article Section Two"
draft = false
+++
Content of Second Article Section Two
+++
title = "Articles sub-section 2 Index page"
draft = false
+++
Sub-section 2.
I agree that `ox-hugo-issue-210b` has to be repeated here. But really,
is it practically that inconvenient to repeat just the section names?
[Ref](https://github.com/kaushalmodi/ox-hugo/issues/210#issuecomment-424494895)
[scripter.co -- Leaf and Branch Bundles](https://scripter.co/hugo-leaf-and-branch-bundles/)
+++
title = "First Article"
draft = false
+++
Content of First Article. This has to be a **Leaf** bundle (`index`, not
`_index`).
+++
title = "First Article Section One"
draft = false
+++
Content of First Article Section One
+++
title = "First Article Section Two"
draft = false
+++
Content of First Article Section Two
+++
title = "Second Article"
draft = false
+++
Content of Second Article. This has to be a **Leaf** bundle (`index`, not
`_index`).
+++
title = "Second Article Section One"
draft = false
+++
Content of Second Article Section One
+++
title = "Second Article Section Two"
draft = false
+++
Content of Second Article Section Two
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment