Add alt text to featured images using featuredImageDescription parameter

This commit is contained in:
Joe Hutchinson
2019-01-03 13:16:08 -05:00
parent 1e10c677c6
commit 8bf54664ad
3 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
</header>
{{ if isset .Params "featuredimage" }}
<figure class="post-figure">
<img src="{{.Params.featuredimage | absURL }}">
<img src="{{.Params.featuredimage | absURL }}" {{ if isset .Params "featuredimagedescription" }}alt="{{.Params.featuredimagedescription}}"{{end}}>
</figure>
{{ end }}
{{ .Content }}