diff options
author | Paul Duncan <pabs@pablotron.org> | 2025-05-12 18:35:30 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2025-05-12 18:35:30 -0400 |
commit | 9124d3d214e45ddad007e99c28f38872b8cefc5a (patch) | |
tree | 2189f951415d95362d9b53429ac6adc93f3e45c7 | |
parent | 3b0bc08bc42a244ca8f73a7438ea0932760ff7b6 (diff) | |
download | pablotron.org-9124d3d214e45ddad007e99c28f38872b8cefc5a.tar.xz pablotron.org-9124d3d214e45ddad007e99c28f38872b8cefc5a.zip |
themes/hugo-pt2021/layouts/partials/carousel.html: always generate alt attribute for img elements
-rw-r--r-- | themes/hugo-pt2021/layouts/partials/carousel.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/carousel.html b/themes/hugo-pt2021/layouts/partials/carousel.html index 1052160..0174b6b 100644 --- a/themes/hugo-pt2021/layouts/partials/carousel.html +++ b/themes/hugo-pt2021/layouts/partials/carousel.html @@ -59,7 +59,7 @@ {{if $src.width}} width='{{- $src.width -}}'{{- end}} {{if $src.height}} height='{{- $src.height -}}'{{- end}} - {{if (or $pic.tip $src.tip)}} alt='{{- default $pic.tip $src.tip -}}'{{- end}} + alt='{{if (or $pic.tip $src.tip)}}{{- default $pic.tip $src.tip -}}{{- end}}' /> {{- end -}} {{- else -}} @@ -78,7 +78,7 @@ {{/* emit img */}} <img src='{{- $src -}}' - {{if $pic.tip}} alt='{{- $pic.tip -}}'{{end}} + alt='{{if $pic.tip}}{{- $pic.tip -}}{{end}}' /> {{- end -}} {{- end -}} |