commit 57f612f5bf643c8a624b7f3148061c93eaf9c9a4
parent ca17f520f8f9dc4bd3b54d4cb8f7e4c9060a16da
Author: Lou Woell <lou.woell@posteo.de>
Date: Wed, 5 Feb 2025 20:04:06 +0100
center figures by default
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
@@ -1,5 +1,5 @@
{{ if .Get "src" }}
- <figure class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" >
+ <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>