mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Merge commit '8b9803425e63e1b1801f8d5d676e96368d706722'
This commit is contained in:
@@ -36,4 +36,4 @@ This example uses the `KeyName` method when querying the translation table on a
|
||||
|
||||
In the example above, we need to pass the value returned by `.KeyName` through the [`lower`] function because the keys in the translation table are lowercase.
|
||||
|
||||
[`lower`]: functions/strings/tolower
|
||||
[`lower`]: /functions/strings/tolower/
|
||||
|
@@ -19,6 +19,6 @@ action:
|
||||
|
||||
Use this method with the [`IsMenuCurrent`] and [`HasMenuCurrent`] methods on a `Page` object to set "active" and "ancestor" classes on a rendered entry. See [this example].
|
||||
|
||||
[`HasMenuCurrent`]: /methods/page/hasmenucurrent
|
||||
[`IsMenuCurrent`]: /methods/page/ismenucurrent
|
||||
[`HasMenuCurrent`]: /methods/page/hasmenucurrent/
|
||||
[`IsMenuCurrent`]: /methods/page/ismenucurrent/
|
||||
[this example]: /templates/menu-templates/#example
|
||||
|
@@ -13,8 +13,8 @@ If you define the menu entry [automatically], the `Name` method returns the page
|
||||
|
||||
If you define the menu entry [in front matter] or [in site configuration], the `Name` method returns the `name` property, falling back to the page’s `LinkTitle`, then to its `Title`.
|
||||
|
||||
[`LinkTitle`]: /methods/page/linktitle
|
||||
[`Title`]: /methods/page/title
|
||||
[`LinkTitle`]: /methods/page/linktitle/
|
||||
[`Title`]: /methods/page/title/
|
||||
[automatically]: /content-management/menus/#define-automatically
|
||||
[in front matter]: /content-management/menus/#define-in-front-matter
|
||||
[in site configuration]: /content-management/menus/#define-in-site-configuration
|
||||
|
@@ -46,8 +46,8 @@ If the entry is not associated with a page, we use its `url` and `name` properti
|
||||
|
||||
See the [menu templates] section for more information.
|
||||
|
||||
[`LinkTitle`]: /methods/page/linktitle
|
||||
[`RelPermalink`]: /methods/page/relpermalink
|
||||
[`LinkTitle`]: /methods/page/linktitle/
|
||||
[`RelPermalink`]: /methods/page/relpermalink/
|
||||
[define menu entries]: /content-management/menus/
|
||||
[menu templates]: /templates/menu-templates/#page-references
|
||||
[methods]: /methods/page
|
||||
[methods]: /methods/page/
|
||||
|
@@ -11,10 +11,10 @@ action:
|
||||
|
||||
If you define the menu entry [automatically], the `Title` method returns the page’s [`LinkTitle`], falling back to its [`Title`].
|
||||
|
||||
If you define the menu entry [in front matter] or [in site configuration], the `Name` method returns the `title` property, falling back to the page’s `LinkTitle`, then to its `Title`.
|
||||
If you define the menu entry [in front matter] or [in site configuration], the `Title` method returns the `title` property, falling back to the page’s `LinkTitle`, then to its `Title`.
|
||||
|
||||
[`LinkTitle`]: /methods/page/linktitle
|
||||
[`Title`]: /methods/page/title
|
||||
[`LinkTitle`]: /methods/page/linktitle/
|
||||
[`Title`]: /methods/page/title/
|
||||
[automatically]: /content-management/menus/#define-automatically
|
||||
[in front matter]: /content-management/menus/#define-in-front-matter
|
||||
[in site configuration]: /content-management/menus/#define-in-site-configuration
|
||||
|
@@ -20,4 +20,4 @@ For menu entries associated with a page, the `URL` method returns the page's [`R
|
||||
</ul>
|
||||
```
|
||||
|
||||
[`RelPermalink`]: /methods/page/relpermalink
|
||||
[`RelPermalink`]: /methods/page/relpermalink/
|
||||
|
@@ -13,7 +13,7 @@ If you define the menu entry [automatically], the `Weight` method returns the pa
|
||||
|
||||
If you define the menu entry [in front matter] or [in site configuration], the `Weight` method returns the `weight` property, falling back to the page’s `Weight`.
|
||||
|
||||
[`Weight`]: /methods/page/weight
|
||||
[`Weight`]: /methods/page/weight/
|
||||
[automatically]: /content-management/menus/#define-automatically
|
||||
[in front matter]: /content-management/menus/#define-in-front-matter
|
||||
[in site configuration]: /content-management/menus/#define-in-site-configuration
|
||||
|
@@ -7,7 +7,7 @@ cascade:
|
||||
---
|
||||
|
||||
<!--
|
||||
Files within this headless branch bundle are markdown snippets. Each file must contain front matter delimiters, though front matter fields are not required.
|
||||
Files within this headless branch bundle are Markdown snippets. Each file must contain front matter delimiters, though front matter fields are not required.
|
||||
|
||||
Include the rendered content using the "include" shortcode.
|
||||
-->
|
||||
|
Reference in New Issue
Block a user