This commit is contained in:
2025-07-06 19:45:00 -05:00
parent 8fafc843ef
commit e0d2c536e4
3 changed files with 33 additions and 11 deletions

View File

@ -1,8 +1,17 @@
<p>
<figure>
<figure>
{{ with .Get "src" }}
{{ with $.Page.Resources.Get . }}
{{ partial "embed-resource.html" . }}
{{ with .Title }}
<figcaption>{{ . | markdownify }}</figcaption>
{{ end }}
{{ else }}
{{ errorf "resource %q not found" . }}
{{ end }}
{{ else }}
{{ .Inner }}
{{ with .Get "caption" }}
<figcaption>{{ . }}</figcaption>
<figcaption>{{ . | markdownify }}</figcaption>
{{ end }}
</figure>
</p>
{{ end }}
</figure>