gohugoio / hugoDocs

The source for https://gohugo.io/
Apache License 2.0
1.03k stars 1.47k forks source link

Describe relationship between file/logical path and publishing path #2487

Open jmooring opened 4 months ago

jmooring commented 4 months ago

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.):

  1. Convert to lower case
  2. Replace spaces with hyphens
  3. Remove punctuation excluding hyphens
  4. Note what happens when disablePathToLower and removePathAccents are true
  5. etc.

Include examples per the reference links below.

Pages to update:

References:

jmichelgarcia commented 4 months ago

Thank you @jmooring.

As per your comments, then it's all by design.

For content/en/docs/Concepts & Tutorials/_index.md

And for content/en/docs/Concepts (Tutorials)/_index.md

Thank you for being patient and kind.

jmooring commented 4 months ago

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.