hugo-theme-termlite/layouts/partials/page/figures/fullwidth.html
Eryn Wells 3248ac51d1 Take an .images list of resources in figures/fullwidth and figures/small
These two templates take a list of resources to operate on. Since these render
image figures, that list is called "images".
2025-08-19 10:02:38 -07:00

8 lines
370 B
HTML

{# TODO: Accommodate multiple images here #}
{{- $resource := index .images 0 -}}
{{- if eq $resource.ResourceType "image" -}}
{{ partial "page/figures/fullwidth-image.html" (merge . (dict "resource" $resource)) }}
{{- else if eq $resource.ResourceType "video" -}}
{{ partial "page/figures/fullwidth-video.html" (merge . (dict "resource" $resource)) }}
{{- end -}}