mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-29 13:01:36 -05:00
Allow using positional parameter for figure caption
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
{{ with .Get "caption" }}
|
{{ with or (.Get "caption") (.Get 0) }}
|
||||||
<figcaption>{{ . | markdownify }}</figcaption>
|
<figcaption>{{ . | markdownify }}</figcaption>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user