Hierarchy

15 views
Skip to first unread message

Mitch Berkson

unread,
May 5, 2023, 12:33:22 AM5/5/23
to nikola-discuss
Is it possible to implement a hierarchy of pages and directories like this:
[fruit]
   |--kiwi.md
   |--banana.md
   |--[red_fruit]
      |--strawberry.md
      |--apple.md
[vegetables]
   |--tomato.md
   |--cucumber.md

fruit and vegetables would be shown in the navigation links, but the sub-directory red_fruit would not be. It would be displayed in the same list as apple and banana. red_fruit would be a link to the list page with its children.

Maybe this is problematic because items doesn't collect the sub-directory.

Chris Warrick

unread,
May 5, 2023, 12:48:25 PM5/5/23
to nikola-...@googlegroups.com
You can have any hierarchy for your site. PAGE_INDEX might not support
hierarchies though — perhaps you might want to write a custom plugin
(based on the existing PAGE_INDEX handler?) that would suit your needs
better?

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Mitch Berkson

unread,
May 8, 2023, 4:14:48 PM5/8/23
to nikola-discuss
Thanks. I was able to make it work.
Reply all
Reply to author
Forward
0 new messages