birdsounds.media/layouts/partials/photo_asset.exif.html
a 9aa43df629 First commit
The basic parts of the layouts/theme should work. I have only populated 2 albums so far.
2024-05-17 21:14:05 -05:00

31 lines
717 B
HTML

{{ with resources.GetMatch .Params.photo_asset }}
{{ with .Exif }}
<dl class="exif metadata">
{{ with .Date }}
<dt class="date">Captured</dt>
<dd class=""><time datetime="{{ .Format "2006-01-02T15:04:05-0700" }}">{{ . | time.Format ":date_full" }}<br>{{ . | time.Format ":time_full" }}</time></dd>
{{ end }}
{{ with .Tags }}
{{ with .FNumber }}
<dt>Aperture</dt>
<dd>f/{{ . }}</dd>
{{ end }}
{{ with .ExposureTime }}
<dt>Exposure</dt>
<dd>{{ . }} s</dd>
{{ end }}
{{ with .ISOSpeedRatings }}
<dt>ISO</dt>
<dd>{{ . }}</dd>
{{ end }}
{{ with .Model }}
<dt>Model</dt>
<dd>{{ . }}</dd>
{{ end }}
{{ end }}
</dl>
{{ end }}
{{ end }} {{/* with asset */}}