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,12 @@
{{/* TODO: should we use .PageInner */}}
{{ partial "embed-resource.html" (.Page.Resources.Get .Destination) }}
{{ with .Title }}
<figure>
{{ partial "embed-resource.html" ($.Page.Resources.Get $.Destination) }}
<figcaption>{{ . }}</figcaption>
</figure>
{{ else }}
{{ partial "embed-resource.html" (.Page.Resources.Get .Destination) }}
{{ errorf "%q" . }}
{{ end }}
{{ with .Attributes }}
{{/* FIXME: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_markup/render-image.html */}}
{{ errorf "%q" . }}
{{ end }}
{{ with .Text }}
{{ errorf "%q" . }}
{{ end }}