mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-10-31 22:13:33 -05:00
Allow using positional parameter for figure caption
This commit is contained in:
1 file changed
+1
-1
@@ -10,7 +10,7 @@
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ .Inner }}
|
||||
{{ with .Get "caption" }}
|
||||
{{ with or (.Get "caption") (.Get 0) }}
|
||||
<figcaption>{{ . | markdownify }}</figcaption>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user