Hello everyone,
assume my page contains a section (btw do I have to call the page type=“section”?) named “colors”.
In content/colors
, I do have:
_index.md
blue.md
yellow.md
red.md
_index.md contains an introduction to the colors.
For the colors list and single layout, I inserted following partial on top:
{{ range where .Site.Pages “Section” .Section }}
{{ .Title }}
{{ end }}
This partial serves to show a navigation of the pages in /colors. I wonder if you think that my solution is a good one? Or is there a better one via config.toml? (I defined my main menu here)
There is one problems left with the menu: The menu shows items
Blue Colors Red Yellow
How can I order these items? Say
Colors Blue Yellow Red
Thank you!