gohugoio / hugoDocs

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

Describe usage of logical path with relevant methods, functions, and shortcode #2448

Open jmooring opened 6 months ago

jmooring commented 6 months ago

See https://gohugo.io/methods/page/path/#finding-pages

Specify the logical path when using any of these methods, functions, or shortcodes. If you include a file extension or language identifier, Hugo will strip these values before finding the page in the logical tree.

We need to add something like that to each of the following:

Functions

Methods

Shortcodes

jmooring commented 6 months ago

I think this was mostly or completely addressed with https://github.com/gohugoio/hugo/commit/fd0185a84a677c836fbe4defec040b77e6deea49 (trailing slashes are OK in path spec).

Taxonomy.Get now does a lower case lookup; see https://github.com/gohugoio/hugo/commit/3f217fd6647b859b828b2ab1798177bebda64a9a.

Also not sure if this section is needed anymore: https://gohugo.io/methods/page/path/#finding-pages