hugo-theme-terminal

My Fork of the Terminal Hugo Theme
git clone https://git.repetitions.de/hugo-theme-terminal
commit a52b53d960f05577c62eb3f62d494db3057f37fc
parent bad04345470feb70dd89ed007b53d8921d7dd035
Author: lou woell <lou@repetitions.de>
Date:   Fri, 25 Sep 2026 22:33:33 +0200

style

Diffstat:
Mlayouts/_shortcodes/figure.html | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/layouts/_shortcodes/figure.html b/layouts/_shortcodes/figure.html @@ -2,7 +2,9 @@ <figure class="{{ with .Get "position"}}{{ . }}{{ else -}} center {{- end }}" > <img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} /> {{ if .Get "caption" }} - <figcaption class="{{ with .Get "captionPosition"}}{{ . }}{{ else -}} center {{- end }}" {{ with .Get "captionStyle" }} style="{{ . | safeCSS }}" {{ end }}>{{ .Get "caption" | safeHTML }}</figcaption> + <figcaption class="{{ with .Get "captionPosition"}}{{ . }}{{ else -}} center {{- end }}" {{ with .Get "captionStyle" }} style="{{ . | safeCSS }}" {{ end }}> + {{ .Get "caption" | safeHTML }} + </figcaption> {{ end }} </figure> {{ end }}