mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-07 04:27:31 -05:00
18 lines
501 B
HTML
18 lines
501 B
HTML
<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>{{ . | markdownify }}</figcaption>
|
|
{{ end }}
|
|
{{ end }}
|
|
</figure>
|