diff --git a/content/en/about/features.md b/content/en/about/features.md index a94ce5526e..cc5e06ad32 100644 --- a/content/en/about/features.md +++ b/content/en/about/features.md @@ -66,7 +66,7 @@ toc: true [install]: /installation/ [LiveReload]: /getting-started/usage/ [organization for your projects]: /getting-started/directory-structure/ -[pagevars]: /variables/page/ +[pagevars]: /methods/page/ [Permalink]: /content-management/urls/#permalinks [Powerful theming]: /hugo-modules/theme-components/ [Pretty URLs]: /content-management/urls/ diff --git a/content/en/content-management/archetypes.md b/content/en/content-management/archetypes.md index 94f0388480..663e409f0a 100644 --- a/content/en/content-management/archetypes.md +++ b/content/en/content-management/archetypes.md @@ -72,10 +72,15 @@ You can use any [template function] within an archetype. As shown above, the def Archetypes receive the following objects and values in [context]: -- `.Date` -- `.Type` -- `.Site` (see [details](/variables/site/)) -- `.File` (see [details](/variables/file/)) +- [`Date`] +- [`Type`] +- [`File`] +- [`Site`] + +[`Date`]: /methods/page/date/ +[`Type`]: /methods/page/type/ +[`File`]: /methods/page/ +[`Site`]: /methods/site/ As shown above, the default archetype passes `.File.ContentBaseName` as the argument to the `replace` function when populating the title in front matter. diff --git a/content/en/content-management/build-options.md b/content/en/content-management/build-options.md index 2f4bec332c..bfec6732a5 100644 --- a/content/en/content-management/build-options.md +++ b/content/en/content-management/build-options.md @@ -55,17 +55,17 @@ render - `never` : Never render the page to disk, and exclude it from all page collections. -[page bundles]: content-management/page-bundles -[page resources]: /content-management/page-resources -[`Permalink`]: /methods/resource/permalink -[`RelPermalink`]: /methods/resource/relpermalink -[`Publish`]: /methods/resource/publish +[page bundles]: /content-management/page-bundles/ +[page resources]: /content-management/page-resources/ +[`Permalink`]: /methods/resource/permalink/ +[`RelPermalink`]: /methods/resource/relpermalink/ +[`Publish`]: /methods/resource/publish/ {{% note %}} Any page, regardless of its build options, will always be available by using the [`.Page.GetPage`] or [`.Site.GetPage`] method. -[`.Page.GetPage`]: /methods/page/getpage -[`.Site.GetPage`]: /methods/site/getpage +[`.Page.GetPage`]: /methods/page/getpage/ +[`.Site.GetPage`]: /methods/site/getpage/ {{% /note %}} ## Example -- headless page @@ -121,7 +121,7 @@ In the example above, note that: Create a unpublished section whose content and resources can be included in other pages. -[branch bundle]: /content-management/page-bundles +[branch bundle]: /content-management/page-bundles/ ```text content/ diff --git a/content/en/content-management/diagrams.md b/content/en/content-management/diagrams.md index 3554b9be3b..7477fa2e31 100644 --- a/content/en/content-management/diagrams.md +++ b/content/en/content-management/diagrams.md @@ -46,7 +46,7 @@ Will be rendered as: Hugo does not provide a built-in template for Mermaid diagrams. Create your own using a [code block render hook]: -[code block render hook]: /render-hooks/code-blocks +[code block render hook]: /render-hooks/code-blocks/ {{< code file=layouts/_default/_markup/render-codeblock-mermaid.html >}}
diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md index 89cc15dadc..e1242a24bb 100644 --- a/content/en/content-management/front-matter.md +++ b/content/en/content-management/front-matter.md @@ -71,7 +71,7 @@ The field names below are reserved. For example, you cannot create a custom fiel (`map`) A map of [build options]. -[build options]: /content-management/build-options +[build options]: /content-management/build-options/ ###### cascade {#cascade-field} @@ -115,16 +115,16 @@ If `true`, the page will not be rendered unless you pass the `--buildDrafts` fla (`bool`) Set to `true` if the content language is in the [CJK] family. This value determines how Hugo calculates word count, and affects the values returned by the [`WordCount`], [`FuzzyWordCount`], and [`Summary`] methods on a `Page` object. -[`fuzzywordcount`]: /methods/page/wordcount -[`summary`]: /methods/page/wordcount -[`wordcount`]: /methods/page/wordcount +[`fuzzywordcount`]: /methods/page/wordcount/ +[`summary`]: /methods/page/summary/ +[`wordcount`]: /methods/page/wordcount/ [cjk]: /getting-started/glossary/#cjk ###### keywords (`string array`) An array of keywords, typically rendered within a `meta` element within the `head` element of the published HTML file, or used as a [taxonomy] to classify content. Access these values from a template using the [`Keywords`] method on a `Page` object. -[`keywords`]: /methods/page/keywords +[`keywords`]: /methods/page/keywords/ [taxonomy]: /getting-started/glossary/#taxonomy @@ -149,8 +149,8 @@ lang (`string`) Provide a template name to [target a specific template], overriding the default [template lookup order]. Set the value to the base file name of the template, excluding its extension. Access this value from a template using the [`Layout`] method on a `Page` object. -[`layout`]: /methods/page/layout -[template lookup order]: /templates/lookup-order +[`layout`]: /methods/page/layout/ +[template lookup order]: /templates/lookup-order/ [target a specific template]: templates/lookup-order/#target-a-template ###### linkTitle @@ -172,7 +172,7 @@ Identifier|Content format `pdc`|Pandoc `rst`|reStructuredText -[content formats]: /content-management/formats +[content formats]: /content-management/formats/ ###### menus @@ -184,7 +184,7 @@ Identifier|Content format (`string array`) The [output formats] to render. -[output formats]: /templates/output-formats +[output formats]: /templates/output-formats/