Sidebar not getting created! #1247
-
I'm a complete beginner here. I'm using the Doks template for my site. I'm trying to run a second Docs-style page for my site, but for some reason, the sidebar doesn't appear. These are the commands I've run so far.
The sidebar still doesn't appear. Images attached of the resulting page. View them here. https://imgur.com/a/RW3MSEg |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I can't replicate it. I followed your instructions and it works for me (http://localhost:1313/class10/introduction/getting-started/):
npx shx rm -rf public resources .hugo_build.lock && npm run dev
|
Beta Was this translation helpful? Give feedback.
-
yes. I have set draft: false https://github.com/cbsecompass/querycompass.git I wasn't able to add the resources folder as there were too many files. Hope this is alright? Please let me know if it isn't |
Beta Was this translation helpful? Give feedback.
In
config/_default/params.toml
you've setsectionNav = ["docs", "Class10"]
— see https://github.com/cbsecompass/querycompass/blob/main/config/_default/params.toml#L47Make the section name all lowercase and you're good:
That's okay. Only handy when you've got lots of images — for more background, see Image processing performance consideration