Sidebar & Table of Contents aren't showing up properly on content placed in different folder than: /content/docs/ #1305
-
Issue:The issue I'm encountering is that the table of contents and sidebar aren't appearing on content which is placed outside of the The about page content mentioned below when placed under Here's an example of what a misrendered webpage looks like: For example:Has sidebar and toc:
Does not have sidebar and toc:
Steps taken to fix issue:
# Nav
sectionNav = ["docs", "about"] # ["docs"] (default) or list of sections (e.g. ["docs", "guides"]) According to Doks documentation the Table of Contents should be automatically generated.
I'm a bit stumped by this to be honest. I believe I've followed all the steps correctly to get this to work properly, at least according to what the Doks documentation recommends. As to why I have "about" picked instead of "about-us" is because I want the current layout to have different subsections:
I also tested running I've seen a solution to this problem on another doks website which I'm using as a reference, but their solution involves creating new layouts and custom scss to go with it. This is something I'd like to avoid not only because I like Doks default styling but also that goes outside the scope of my current skillset. Here's a link to my repository: https://github.com/bellevuecollegeinfosec/bcinfosec.club |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@ochrebasis, sorry for getting back this late (other priorities). Interesting website you have! Just add For more background see the Hugo docs: type |
Beta Was this translation helpful? Give feedback.
@ochrebasis, sorry for getting back this late (other priorities). Interesting website you have!
Just add
type: docs
to the frontmatter of your page.:For more background see the Hugo docs: type