hugoDocs
hugoDocs copied to clipboard
Describe relationship between file/logical path and publishing path
Describe the relationship between the content’s file path (or logical path when the content is not backed by a file) and the published path. For example (this needs verification, additional steps, etc.):
- Convert to lower case
- Replace spaces with hyphens
- Remove punctuation excluding hyphens
- Note what happens when disablePathToLower and removePathAccents are true
- etc.
Include examples per the reference links below.
Pages to update:
References:
Thank you @jmooring.
As per your comments, then it's all by design.
For content/en/docs/Concepts & Tutorials/_index.md
- Convert to lower case:
concepts & tutorials
- Replace spaces with hyphens:
concepts-&-tutorials
- Remove punctuation excluding hyphens:
concepts--tutorials
And for content/en/docs/Concepts (Tutorials)/_index.md
- Convert to lower case:
concepts (tutorials)
- Replace spaces with hyphens:
concepts-(tutorials)
- Remove punctuation excluding hyphens:
concepts-tutorials
Thank you for being patient and kind.
There's a bit more to it, I think, in that some punctuation is retained (tilde for example). Need to dig into it a bit more.