This commit is contained in:
2025-07-06 19:44:46 -05:00
parent 1f82ad4f0b
commit 8fafc843ef
12 changed files with 55 additions and 95 deletions

View File

@ -1,15 +1,8 @@
{{ $resource := .Page.Resources.GetMatch (.Get "src") }}
{{ $noborder := false }}
{{ if .Get "noborder" }}
{{ $noborder = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ end }}
<p>
{{ partial "figure.html" (dict "src" $resource "noborder" $noborder "hidecaption" $hidecaption) }}
<figure>
{{ .Inner }}
{{ with .Get "caption" }}
<figcaption>{{ . }}</figcaption>
{{ end }}
</figure>
</p>