31 lines
968 B
HTML
31 lines
968 B
HTML
{{ define "main" }}
|
|
<main class="main--single photostream--single">
|
|
<header class="page-header">
|
|
{{ partial "page_header.html" (dict "page" .) }}
|
|
</header>
|
|
|
|
{{- $images := partial "photostream/image-resources.html" . -}}
|
|
{{- if eq (len $images) 0 -}}
|
|
{{ errorf "Missing photo from photos page %q" .Path }}
|
|
{{- end -}}
|
|
|
|
{{ if eq (len $images) 1 }}
|
|
{{- $img := index $images 0 -}}
|
|
<figure class="figure figure--image photostream__figure">
|
|
<img
|
|
src="{{ $img.RelPermalink }}"
|
|
{{- with $img.Params.alt }} alt="{{ . }}" {{ end -}}>
|
|
</figure>
|
|
|
|
{{ .Content -}}
|
|
|
|
{{- if .Params.photo_details | default .Params.photoDetails | default true -}}
|
|
{{- partial "photostream/exif_table.html" $img.Exif -}}
|
|
{{- end -}}
|
|
{{ end }}{{/* if eq (len $images) 1 */}}
|
|
|
|
<footer class="page-footer">
|
|
{{ partial "page/footer.html" . }}
|
|
</footer>
|
|
</main>
|
|
{{ end }}
|