mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -12,8 +12,6 @@ action:
|
||||
aliases: [/functions/urls.joinpath]
|
||||
---
|
||||
|
||||
{{< new-in 0.112.0 >}}
|
||||
|
||||
```go-html-template
|
||||
{{ urls.JoinPath }} → "" (empty string)
|
||||
{{ urls.JoinPath "" }} → /
|
||||
|
@@ -35,7 +35,7 @@ The second argument is a path to a page, with or without a file extension, with
|
||||
Instead of specifying a path, you can also provide an options map:
|
||||
|
||||
path
|
||||
: (`string`) The path to the page, relative to the content directory. Required.
|
||||
: (`string`) The path to the page, relative to the `content` directory. Required.
|
||||
|
||||
lang
|
||||
: (`string`) The language (site) to search for the page. Default is the current language. Optional.
|
||||
|
@@ -42,7 +42,7 @@ Code|baseURL|Permalink
|
||||
Instead of specifying a path, you can also provide an options map:
|
||||
|
||||
path
|
||||
: (`string`) The path to the page, relative to the content directory. Required.
|
||||
: (`string`) The path to the page, relative to the `content` directory. Required.
|
||||
|
||||
lang
|
||||
: (`string`) The language (site) to search for the page. Default is the current language. Optional.
|
||||
|
@@ -16,7 +16,7 @@ aliases: [/functions/urlize]
|
||||
|
||||
## Example
|
||||
|
||||
Use the `urlize` function to create a link to a [term] page.
|
||||
Use the `urlize` function to create a link to a [term page](g).
|
||||
|
||||
Consider this site configuration:
|
||||
|
||||
@@ -60,4 +60,3 @@ To create a link to the term page:
|
||||
To generate a list of term pages associated with a given content page, use the [`GetTerms`] method on a `Page` object.
|
||||
|
||||
[`GetTerms`]: /methods/page/getterms/
|
||||
[term]: /getting-started/glossary/#term
|
||||
|
Reference in New Issue
Block a user