Miscellaneous edits

Co-authored-by: Salim B <git@salim.space>
This commit is contained in:
Joe Mooring 2025-02-02 16:03:53 -08:00 committed by GitHub
parent 612b8528f9
commit 4591058f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 13 additions and 18 deletions

View File

@ -148,7 +148,7 @@ use .
use ../gohugoioTheme
```
Using the `use` directive, list all the modules you want to work on, pointing to its relative location. As in the example above, it's recommended to always include the main project (the ".") in the list.
Using the `use` directive, list all the modules you want to work on, pointing to its relative location. As in the example above, it's recommended to always include the main project (the `.`) in the list.
With that you can start the Hugo server with that workspace enabled:

View File

@ -16,7 +16,7 @@ action:
signatures: [PAGE.Ancestors]
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
With this content structure:

View File

@ -16,7 +16,7 @@ action:
signatures: [PAGE.CurrentSection]
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
{{% note %}}
The current section of a [section page](g), [taxonomy page](g), [term page](g), or the home page, is itself.

View File

@ -16,7 +16,7 @@ action:
signatures: [PAGE.FirstSection]
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
{{% note %}}
When called on the home page, the `FirstSection` method returns the `Page` object of the home page itself.

View File

@ -19,7 +19,7 @@ toc: true
The `InSection` method on a `Page` object reports whether the given page is in the given section. Note that the method returns `true` when comparing a page to a sibling.
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
With this content structure:

View File

@ -17,7 +17,7 @@ action:
toc: true
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
With this content structure:

View File

@ -16,7 +16,7 @@ action:
signatures: [PAGE1.IsDescendant PAGE2]
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
With this content structure:

View File

@ -16,7 +16,7 @@ action:
signatures: [PAGE.Parent]
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
{{% note %}}
The parent section of a regular page is the [current section].

View File

@ -16,7 +16,7 @@ action:
signatures: [PAGE.Sections]
---
{{% include "methods/page/_common/definition-of-section.md" %}}
{{% glossary-term section %}}
With this content structure:

View File

@ -1,5 +0,0 @@
---
_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

@ -3,4 +3,4 @@ title: context
reference: /templates/introduction/#context
---
Represented by a dot "." within a [_template action_](g), _context_ is the current location in a data structure. For example, while iterating over a [_collection_](g) of pages, the context within each iteration is the page's data structure. The context received by each template depends on template type and/or how it was called.
Represented by a dot (`.`) within a [_template action_](g), _context_ is the current location in a data structure. For example, while iterating over a [_collection_](g) of pages, the context within each iteration is the page's data structure. The context received by each template depends on template type and/or how it was called.

View File

@ -3,4 +3,4 @@ title: headless bundle
reference: /content-management/build-options/
---
A _headless bundle_ is an unpublished leaf or branch bundle whose content and resources you can include in other pages.
A _headless bundle_ is an unpublished [_leaf bundle_](g) or an unpublished [_branch bundle_](g) whose content and resources you can include in other pages.

View File

@ -3,4 +3,4 @@ title: leaf bundle
reference: /content-management/page-bundles/
---
A _leaf bundle_ is a directory that contains an&nbsp;`index.md`&nbsp;file and zero or more [_resources_](g). Analogous to a physical leaf, a leaf bundle is at the end of a branch. It has no descendants.
A _leaf bundle_ is a directory that contains an&nbsp;`index.md`&nbsp;file and zero or more [_resources_](g). Analogous to a physical leaf, a leaf bundle is at the end of a [_branch bundle_](g). It has no descendants.

View File

@ -2,4 +2,4 @@
title: section
---
A _section_ is a top-level content directory or any content directory containing an&nbsp;`_index.md`&nbsp;file. A section is also known as a [_branch bundle_](g).
A _section_ is a top-level content directory or any content directory containing an&nbsp;`_index.md`&nbsp;file.