Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boothe <git@rootwork.org>2022-05-11 00:07:02 +0300
committerIvan Boothe <git@rootwork.org>2022-05-11 00:07:02 +0300
commit043118b58d3047ea1fa0e78551b5f3bf7d66eaac (patch)
tree8b6b5caeb44d836c3b107efd82f091d44bff1d3c /layouts
parentc5a826e4d1578c5f187a225c78d9cd249bcae99a (diff)
add featured image alt text
Signed-off-by: Ivan Boothe <git@rootwork.org>
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6fa6fd6..3da6557 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -16,7 +16,7 @@
{{- partial "post-meta" . }}
{{- with .Params.featureImage -}}
<div class="post_featured">
- {{- partial "image" (dict "file" . "type" "featured" "Page" $.Page) }}
+ {{- partial "image" (dict "file" . "alt" $p.featureImageAlt "type" "featured" "Page" $.Page) }}
</div>
{{- end -}}
{{ if $p.toc }}