Side Navigation Root Difficulty #2609
Unanswered
jrjohnson91
asked this question in
Q&A
Replies: 1 comment
-
|
I have done a little more reading and I would like to mention that this is a doc-only site and I've added # Publish docs pages/sections at site root (no /docs prefix).
[permalinks]
[permalinks.page]
docs = '/:sections[1:]/:slug/'
[permalinks.section]
docs = '/:sections[1:]'
# Make home pages link-only so docs section landing pages can own root URLs;
# this avoids Hugo warning about duplicate pages rendering at the site roots
# (for each locale).
[cascade]
[cascade.build]
render = 'link'
[cascade.target]
path = '/'Having done that, I moved all the Including |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @chalin and fellow community members,
I am trying to replicate the side navigation behavior found on https://www.docsy.dev/docs/ site.
Particularly the difference in the side navigation for pages https://www.docsy.dev/docs/get-started/other-options/ and https://www.docsy.dev/docs/content/adding-content/. The former stays at the top most level of the "Docs" and the latter sets the navigation root to "Content and Customization".
What is driving the difference in this behavior? I cannot seem to figure out how to create this behavior in my own site.
_index.mdof the respective folders don't seem different.type: "docs"anywhere. I am usingcascade: [ { type: "docs", _target: { path: "/**" } } ]at the root_index.mdBeta Was this translation helpful? Give feedback.
All reactions