betz
December 26, 2018, 9:44pm
1
Can anyone check out our git repo and tell why subpages of a section are not working?
There is content/projects/citygate which contains a index.md file.
Which translates to https://hsbxl.be/projects/citygate
So far, so good.
Now i want have subpages of that ‘project’.
So we can have something like
https://hsbxl.be/projects/citygate/kitchen
Tried:
kitchen.md
kitchen/index.md
kitchen/_index.md
nothing seems to generate some page.
I think I am missing something.
Any pointer would be appreciated.
zwbetz
December 26, 2018, 9:51pm
2
Change content/projects/citygate/index.md
to _index.md
. This changes it from a leaf to a branch bundle, and allows nesting of more bundles.
1 Like
betz
December 27, 2018, 12:17am
3
great, but then it becomes a list and shows the content of list.html
i would need it to still be a single.html
Or maybe i can have the list detect it is on which level of that section it is and show different content/menu?
maiki
December 27, 2018, 1:49am
4
That’s what a section is. But you control what is shown. So in your list.html
, or citygate/list.html
, just show the .Content
and don’t list anything. It being a list page means it has a default context, but it will still show all the front matter and content you add.
2 Likes
betz
December 27, 2018, 11:46pm
5
allright. I did a small refactor.
list pages are now also _index.md pages.
And logic from within my list.html is migrated to shortcodes.
thanks all for your help