diff options
Diffstat (limited to 'themes/hugo-pt2021/layouts/shortcodes')
| -rw-r--r-- | themes/hugo-pt2021/layouts/shortcodes/pe-figure.html | 4 | ||||
| -rw-r--r-- | themes/hugo-pt2021/layouts/shortcodes/pe-picture.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html b/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html index 324d11f..b90a260 100644 --- a/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html +++ b/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html @@ -66,7 +66,7 @@ enhancement. {{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 -}} @@ -90,7 +90,7 @@ enhancement. {{/* emit img */}} <img src='{{- $src -}}' - {{if $pic.tip}} alt='{{- $pic.tip -}}'{{end}} + alt='{{if $pic.tip}}{{- $pic.tip -}}{{end}}' /> {{- end -}} {{- end -}} diff --git a/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html b/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html index 3135fcf..b7623ec 100644 --- a/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html +++ b/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html @@ -69,7 +69,7 @@ Features: {{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 -}} @@ -93,7 +93,7 @@ Features: {{/* emit img */}} <img src='{{- $src -}}' - {{if $pic.tip}} alt='{{- $pic.tip -}}'{{end}} + alt='{{if $pic.tip}}{{- $pic.tip -}}{{end}}' /> {{- end -}} {{- end -}} |
