Merge commit 'e477373487abcccdbed95688e37aa74b9b8fc198'

This commit is contained in:
Bjørn Erik Pedersen
2024-12-11 09:53:33 +01:00
73 changed files with 705 additions and 163 deletions

View File

@@ -16,8 +16,6 @@ action:
signatures: [PAGE.Ancestors]
---
{{< new-in 0.109.0 >}}
{{% include "methods/page/_common/definition-of-section.md" %}}
With this content structure:

View File

@@ -141,6 +141,7 @@ Some providers perform deep clones by default, others allow you to configure the
Hosting service | Default clone depth | Configurable
:-- | :-- | :--
AWS Amplify | Deep | N/A
Cloudflare Pages | Shallow | Yes [^CFP]
DigitalOcean App Platform | Deep | N/A
GitHub Pages | Shallow | Yes [^GHP]

View File

@@ -28,4 +28,8 @@ If the `Page` object associated with the menu entry is a section, this method al
See [menu templates] for a complete example.
{{% note %}}
When using this method you must either define the menu entry in front matter, or specify a `pageRef` property when defining the menu entry in your site configuration.
{{% /note %}}
[menu templates]: /templates/menu/#example

View File

@@ -26,4 +26,8 @@ aliases: [/functions/ismenucurrent]
See [menu templates] for a complete example.
{{% note %}}
When using this method you must either define the menu entry in front matter, or specify a `pageRef` property when defining the menu entry in your site configuration.
{{% /note %}}
[menu templates]: /templates/menu/#example

View File

@@ -1,11 +1,14 @@
---
title: Store
linktitle: PAGE.Store
description: Returns a persistent "scratch pad" on the given page to store and manipulate data.
categories: []
keywords: []
action:
related:
- methods/page/scratch
- methods/site/store
- functions/hugo/store
- functions/collections/NewScratch
returnType: maps.Scratch
signatures: [PAGE.Store]

View File

@@ -1,5 +1,5 @@
---
# Do not remove front matter.
_comment: Do not remove front matter.
---
A _section_ is a top-level content directory, or any content directory with an&nbsp;_index.md&nbsp;file.

View File

@@ -1,5 +1,5 @@
---
# Do not remove front matter.
_comment: Do not remove front matter.
---
Hugo determines the _next_ and _previous_ page by sorting the site's collection of regular pages according to this sorting hierarchy:

View File

@@ -1,5 +1,5 @@
---
# Do not remove front matter.
_comment: Do not remove front matter.
---
Hugo determines the _next_ and _previous_ page by sorting the current section's regular pages according to this sorting hierarchy:

View File

@@ -1,5 +1,5 @@
---
# Do not remove front matter.
_comment: Do not remove front matter.
---
Hugo generates one or more files per page when building a site. For example, when rendering home, [section], [taxonomy], and [term] pages, Hugo generates an HTML file and an RSS file. Both HTML and RSS are built-in _output formats_. Create multiple output formats, and control generation based on [page kind], or by enabling one or more output formats for one or more pages. See&nbsp;[details].

View File

@@ -1,5 +1,5 @@
---
# Do not remove front matter.
_comment: Do not remove front matter.
---
Get IDENTIFIER

View File

@@ -1,5 +1,5 @@
---
# Do not remove front matter.
_comment: Do not remove front matter.
---
## Methods