12 lines
402 B
HTML
12 lines
402 B
HTML
{{- $page := .page -}}
|
|
{{- $shouldShowTitle := .shouldShowTitle -}}
|
|
|
|
{{/* TODO: Accommodate multiple images here. */}}
|
|
{{- $resource := index .images 0 -}}
|
|
{{- if not $resource }}
|
|
{{ errorf "No resource named '%s'. %s" .name .page.Permalink }}
|
|
{{ end -}}
|
|
|
|
{{- if eq $resource.ResourceType "image" -}}
|
|
{{ partial "page/figures/small-image.html" (merge . (dict "resource" $resource)) }}
|
|
{{- end -}}
|