mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-30 10:12:40 +00:00
How to access individual EXIF data tags
Explain more clearly how to access individual EXIF data tags
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d5d3bad9a0
commit
26fc74fe31
@@ -101,6 +101,17 @@ TAG: {{ $k }}: {{ $v }}
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
Or individually access EXIF data with dot access, e.g.:
|
||||
|
||||
```go-html-template
|
||||
{{ with $img.Exif }}
|
||||
Date: {{ .Date }}
|
||||
Lat/Long: {{ .Lat }}/{{ .Long }}
|
||||
Aperture: {{ .Tags.ApertureValue }}
|
||||
Focal Length: {{ .Tags.FocalLength }}
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
#### Exif fields
|
||||
|
||||
Date
|
||||
|
||||
Reference in New Issue
Block a user