2022-10-19 07:38:26 -07:00
|
|
|
{{ define "header" }}
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-08-27 09:17:42 -07:00
|
|
|
{{ define "main" }}
|
2023-09-26 09:37:04 -07:00
|
|
|
{{- $photos := partial "photos/list.html" . -}}
|
|
|
|
{{ if eq (len $photos) 0 }}
|
|
|
|
{{ errorf "Missing photo from photos page %q" .Path }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq (len $photos) 1 }}
|
|
|
|
{{- $img := index $photos 0 -}}
|
|
|
|
<figure>
|
2023-10-03 08:55:13 -07:00
|
|
|
<img
|
|
|
|
src="{{ $img.RelPermalink }}"
|
|
|
|
{{ with $img.Params.alt }}
|
|
|
|
alt="{{ . }}"
|
|
|
|
{{ end }}
|
|
|
|
height={{ $img.Height }}>
|
2023-09-26 09:37:04 -07:00
|
|
|
</figure>
|
|
|
|
|
|
|
|
<article>
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ .Content }}
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{{- if .Params.photo_details | default true -}}
|
|
|
|
{{- partial "photo_exif_table.html" $img.Exif -}}
|
|
|
|
|
|
|
|
{{- if in ($.Site.BaseURL | string) "localhost" -}}
|
|
|
|
{{- partial "development/photo_exif_table.html" $img.Exif -}}
|
2022-10-21 11:09:30 -07:00
|
|
|
{{- end -}}
|
2023-09-26 09:37:04 -07:00
|
|
|
{{- end -}}
|
|
|
|
{{ else }}
|
|
|
|
<figure>
|
|
|
|
<ul class="carousel">
|
|
|
|
{{- range $photos -}}
|
|
|
|
<li>{{ . }}</li>
|
|
|
|
{{- end -}}
|
|
|
|
</ul>
|
|
|
|
</figure>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
{{ partial "footer_tags.html" . }}
|
|
|
|
</footer>
|
2022-08-27 09:17:42 -07:00
|
|
|
{{ end }}
|
2022-10-19 07:38:26 -07:00
|
|
|
|
|
|
|
{{ define "footer" }}
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ end }}
|