I am doing a TOC for my content folder. Where I have different view for every level/depth of sections.
My question is how can I know the depth of a particular section/folder.
How can I know these levels ? I am looping the section using range , Do we have any parameter using which I can know the level/ depth of the section and perform action accordingly.
Good thinking, but that will fail with leaf bundles. So then you look at .RelPermalink instead, but that’s subject to user modification through front matter (url) and site configuration (permalinks).
git clone --single-branch -b hugo-forum-topic-37302 https://github.com/jmooring/hugo-testing hugo-forum-topic-37302
cd hugo-forum-topic-37302
hugo server