summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/go-template
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-06-21 09:41:24 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-06-21 09:41:24 +0200
commitaf0cb57aaf668278551454678eac60b17348b13c (patch)
treeb0fbd866cfc5e605ff789de9d6d9b162094a217b /docs/content/en/functions/go-template
parentd5542ed286746e89fb13a1f821d4955ace371773 (diff)
parent8b9803425e63e1b1801f8d5d676e96368d706722 (diff)
downloadhugo-af0cb57aaf668278551454678eac60b17348b13c.tar.gz
hugo-af0cb57aaf668278551454678eac60b17348b13c.zip
Merge commit '8b9803425e63e1b1801f8d5d676e96368d706722'
Diffstat (limited to 'docs/content/en/functions/go-template')
-rw-r--r--docs/content/en/functions/go-template/_common/_index.md2
-rw-r--r--docs/content/en/functions/go-template/define.md4
-rw-r--r--docs/content/en/functions/go-template/else.md6
-rw-r--r--docs/content/en/functions/go-template/end.md10
-rw-r--r--docs/content/en/functions/go-template/if.md2
-rw-r--r--docs/content/en/functions/go-template/range.md8
-rw-r--r--docs/content/en/functions/go-template/return.md2
-rw-r--r--docs/content/en/functions/go-template/template.md4
-rw-r--r--docs/content/en/functions/go-template/with.md2
9 files changed, 20 insertions, 20 deletions
diff --git a/docs/content/en/functions/go-template/_common/_index.md b/docs/content/en/functions/go-template/_common/_index.md
index 47d5812fb..4328d4d14 100644
--- a/docs/content/en/functions/go-template/_common/_index.md
+++ b/docs/content/en/functions/go-template/_common/_index.md
@@ -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.
-->
diff --git a/docs/content/en/functions/go-template/define.md b/docs/content/en/functions/go-template/define.md
index 4d09c14f3..f15dd6ff0 100644
--- a/docs/content/en/functions/go-template/define.md
+++ b/docs/content/en/functions/go-template/define.md
@@ -48,8 +48,8 @@ Use with the [`template`] function:
{{ end }}
```
-[`block`]: /functions/go-template/block
-[`template`]: /functions/go-template/block
+[`block`]: /functions/go-template/block/
+[`template`]: /functions/go-template/block/
[`partial`]: /functions/partials/include/
{{% include "functions/go-template/_common/text-template.md" %}}
diff --git a/docs/content/en/functions/go-template/else.md b/docs/content/en/functions/go-template/else.md
index ccb8b722c..698998bd8 100644
--- a/docs/content/en/functions/go-template/else.md
+++ b/docs/content/en/functions/go-template/else.md
@@ -64,6 +64,6 @@ Use `else if` to check multiple conditions.
{{% include "functions/go-template/_common/text-template.md" %}}
-[`if`]: /functions/go-template/if
-[`with`]: /functions/go-template/with
-[`range`]: /functions/go-template/range
+[`if`]: /functions/go-template/if/
+[`with`]: /functions/go-template/with/
+[`range`]: /functions/go-template/range/
diff --git a/docs/content/en/functions/go-template/end.md b/docs/content/en/functions/go-template/end.md
index 07d004de5..6fb5bbfd6 100644
--- a/docs/content/en/functions/go-template/end.md
+++ b/docs/content/en/functions/go-template/end.md
@@ -58,8 +58,8 @@ Use with the [`define`] statement:
{{% include "functions/go-template/_common/text-template.md" %}}
-[`block`]: /functions/go-template/block
-[`define`]: /functions/go-template/define
-[`if`]: /functions/go-template/if
-[`range`]: /functions/go-template/range
-[`with`]: /functions/go-template/with
+[`block`]: /functions/go-template/block/
+[`define`]: /functions/go-template/define/
+[`if`]: /functions/go-template/if/
+[`range`]: /functions/go-template/range/
+[`with`]: /functions/go-template/with/
diff --git a/docs/content/en/functions/go-template/if.md b/docs/content/en/functions/go-template/if.md
index e63c382e1..19c887f25 100644
--- a/docs/content/en/functions/go-template/if.md
+++ b/docs/content/en/functions/go-template/if.md
@@ -51,4 +51,4 @@ Use `else if` to check multiple conditions.
{{% include "functions/go-template/_common/text-template.md" %}}
-[`else`]: /functions/go-template/else
+[`else`]: /functions/go-template/else/
diff --git a/docs/content/en/functions/go-template/range.md b/docs/content/en/functions/go-template/range.md
index e2f401371..dff3eed72 100644
--- a/docs/content/en/functions/go-template/range.md
+++ b/docs/content/en/functions/go-template/range.md
@@ -75,7 +75,7 @@ This template will render the page title three times:
Gaining a thorough understanding of context is critical for anyone writing template code.
{{% /note %}}
-[`seq`]: functions/collections/seq/
+[`seq`]: /functions/collections/seq/
[context]: /getting-started/glossary/#context
## Array or slice of scalars
@@ -194,6 +194,6 @@ Unlike ranging over an array or slice, Hugo sorts by key when ranging over a map
{{% include "functions/go-template/_common/text-template.md" %}}
-[`else`]: /functions/go-template/else
-[`break`]: /functions/go-template/break
-[`continue`]: /functions/go-template/continue
+[`else`]: /functions/go-template/else/
+[`break`]: /functions/go-template/break/
+[`continue`]: /functions/go-template/continue/
diff --git a/docs/content/en/functions/go-template/return.md b/docs/content/en/functions/go-template/return.md
index 2a166c718..e09522a58 100644
--- a/docs/content/en/functions/go-template/return.md
+++ b/docs/content/en/functions/go-template/return.md
@@ -80,7 +80,7 @@ See additional examples in the [partial templates] section.
## Usage
{{% note %}}
-Unlike `return` statements in other languages, Hugo executes the first occurrence of the `return` statement regardless of its position within logical blocks
+Unlike `return` statements in other languages, Hugo executes the first occurrence of the `return` statement regardless of its position within logical blocks.
{{% /note %}}
A partial that returns a value must contain only one `return` statement, placed at the end of the template.
diff --git a/docs/content/en/functions/go-template/template.md b/docs/content/en/functions/go-template/template.md
index a78ec5c65..687d8b0c8 100644
--- a/docs/content/en/functions/go-template/template.md
+++ b/docs/content/en/functions/go-template/template.md
@@ -13,7 +13,7 @@ action:
signatures: ['template NAME [CONTEXT]']
---
-Use the `template` function to execute [internal templates]. For example:
+Use the `template` function to execute [embedded templates]. For example:
```go-html-template
{{ range (.Paginate .Pages).Pages }}
@@ -46,4 +46,4 @@ The example above can be rewritten using an [inline partial] template:
[`partial`]: /functions/partials/include/
[inline partial]: /templates/partials/#inline-partials
-[internal templates]: /templates/internal
+[embedded templates]: /templates/embedded/
diff --git a/docs/content/en/functions/go-template/with.md b/docs/content/en/functions/go-template/with.md
index 0f3255b1a..3a73d54bb 100644
--- a/docs/content/en/functions/go-template/with.md
+++ b/docs/content/en/functions/go-template/with.md
@@ -84,4 +84,4 @@ Gaining a thorough understanding of context is critical for anyone writing templ
{{% include "functions/go-template/_common/text-template.md" %}}
-[`else`]: /functions/go-template/else
+[`else`]: /functions/go-template/else/