diff options
author | Chen Zhe <chenzhesg@gmail.com> | 2020-02-16 20:11:43 +0300 |
---|---|---|
committer | Chen Zhe <chenzhesg@gmail.com> | 2020-02-16 20:11:43 +0300 |
commit | ea0ae657001f610616e5ca1162df0a0a3e3cf215 (patch) | |
tree | 9ec6efaeccbcb5db5630a8e86a6ebf4ed228db5c /layouts/index.html | |
parent | 3e446245d1c8da2c7a83b048efc9fa56bf6024fa (diff) |
removed unused images and condense generated html
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html index eac86c0..16ef071 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,20 +16,20 @@ data-title="{{ $image.Name }}" data-description="{{ $image.Params.description | markdownify }}" {{ if isset $image.Params "button_text" }}data-buttontext="{{ $image.Params.button_text }}"{{ end }} data-collection="{{ $page.Title }}" - data-exif="{{if in (slice "jpg" "jpeg" "tiff" "tif") $image.MediaType.SubType }} + data-exif="{{ if in (slice "jpg" "jpeg" "tiff" "tif") $image.MediaType.SubType }} {{- with $image.Exif -}} {{- with .Tags -}} <li>{{- if isset . "Model" }}{{ if not (hasPrefix (lower .Model) (lower .Make)) }}{{ .Make }} {{ end }}{{ .Model }} {{- else }}{{ if isset $image.Params "composite" }}{{ $image.Params.composite }} {{- else }}Composite Photo{{ end }}{{ end }}</li> - {{- if isset . "LensModel" }} + {{- if isset . "LensModel" -}} <li>{{- if not (hasPrefix (lower .LensModel) (lower .Make)) }}{{ .LensModel }} {{- else }}{{ substr .LensModel (len .Make)}}{{ end }} @ {{ .FocalLength }}mm</li> {{- end }} {{- with .ExposureTime }}<li>S.S. {{ . }}s</li>{{ end }} {{- with .FNumber }}<li>A. f/{{ . }}</li>{{ end }} {{- with .ISOSpeedRatings }}<li>ISO {{ . }}</li>{{ end }} - {{ end -}} + {{- end -}} <li>Taken at {{ if isset $image.Params "timestamp" }} {{ $image.Params.timestamp }} {{ else }}{{ .Date.Format "2006-1-2 15:04" }}{{ end }}</li> {{- end }} {{- end }}"> |