We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6e508 commit 4dc3fcbCopy full SHA for 4dc3fcb
layouts/shortcodes/figure.html
@@ -43,7 +43,10 @@
43
{{- $align := default "default" $figure.align -}}
44
{{- $id := printf "id%03d" $.Ordinal -}}
45
<figure class="align-{{ $align }}" id="{{ $id }}">
46
-{{ partial "_elements/image.html" (dict "data" $figure) }}
+{{- $m := newScratch -}}
47
+{{- $m.Set "image" $figure -}}
48
+{{- $m.SetInMap "image" "align" "center" -}}
49
+{{ partial "_elements/image.html" (dict "data" $m.Values.image) }}
50
<figcaption>
51
{{- with $figure.title -}}
52
<strong class="caption-title">{{ . }}</strong><a class="headerlink" href="#{{ $id }}" title="Link to this image">#</a><br>
0 commit comments