aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/render-hooks
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-08-09 15:17:43 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-09 15:17:43 +0200
commite99eba39e7f9f9fed454a7671635052600685cea (patch)
tree43463de3a5a9b767358d6d3e8fc7711960947c17 /docs/content/en/render-hooks
parentdbff48e6c381eca4329f468790ac7dc4a0e6a044 (diff)
parenta6e635ca7d905d9ec3ffd708db2694f680b03aae (diff)
downloadhugo-e99eba39e7f9f9fed454a7671635052600685cea.tar.gz
hugo-e99eba39e7f9f9fed454a7671635052600685cea.zip
Merge commit 'a6e635ca7d905d9ec3ffd708db2694f680b03aae'
Diffstat (limited to 'docs/content/en/render-hooks')
-rwxr-xr-xdocs/content/en/render-hooks/images.md2
-rwxr-xr-xdocs/content/en/render-hooks/introduction.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/content/en/render-hooks/images.md b/docs/content/en/render-hooks/images.md
index e68cd1b95..2d9b5e2e5 100755
--- a/docs/content/en/render-hooks/images.md
+++ b/docs/content/en/render-hooks/images.md
@@ -103,7 +103,7 @@ To render standalone images within `figure` elements:
<img src="{{ .Destination | safeURL }}"
{{- with .Text }} alt="{{ . }}"{{ end -}}
>
- <figcaption>{{ .Title }}</figcaption>
+ {{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}}
</figure>
{{- else -}}
<img src="{{ .Destination | safeURL }}"
diff --git a/docs/content/en/render-hooks/introduction.md b/docs/content/en/render-hooks/introduction.md
index ebf95c00f..8268b2ec7 100755
--- a/docs/content/en/render-hooks/introduction.md
+++ b/docs/content/en/render-hooks/introduction.md
@@ -67,15 +67,15 @@ layouts/
├── _default/
│ └── _markup/
│ ├── render-link.html
-│ └── render-link.text.txt
+│ └── render-link.rss.xml
├── books/
│ └── _markup/
│ ├── render-link.html
-│ └── render-link.text.txt
+│ └── render-link.rss.xml
└── films/
└── _markup/
├── render-link.html
- └── render-link.text.txt
+ └── render-link.rss.xml
```
[kind]: /getting-started/glossary/#page-kind