diff options
author | Derek Severin <severinderek@gmail.com> | 2019-02-10 13:57:36 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-02-10 13:57:36 +0300 |
commit | 5fc4fb0f7d26c94f5e3d28366dbb4ec33dd3227a (patch) | |
tree | fce386aa08c584845b10ba7411733b83ff96d36c | |
parent | 43e5f5971006d59b58f81879cdc01dd9bbda03e7 (diff) |
Image gallery: Deleted commented code
-rw-r--r-- | layouts/_default/single.html | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7fa2910..551431e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,5 @@ {{ define "content" }} + {{ $logos := .Resources.Match "logos/*" }} {{ if gt (len $logos) 0 }} <ul class="logos-list" aria-hidden="true"> @@ -22,32 +23,13 @@ </div> {{ end }} -{{/* - {{ $images := .Resources.Match "images/*" }} - {{ if gt (len $images) 0 }} - <ul class="images-list" aria-hidden="true"> - {{ range $images }} - {{ if eq .ResourceType "image" }} - {{ $image := .Resize "512x" }} - <li> - <figure> - <img class="image" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}"> - {{ with $image.Params.copyright }} - <figcaption class="copyright">{{ . | markdownify }}</figcaption> - {{ end }} - </figure> - </li> - {{ end }} - {{ end }} - </ul> - {{ end }} -*/}} {{ $images_directory := .Params.images_directory | default "images" }} {{ $images_static := .Params.images_static | default "false" }} {{ $images_copyright := .Params.images_copyright }} {{ $images_params := .Params.images }} {{ partial "gallery.html" (dict "page" . "dir" $images_directory "static" $images_static "images_params" $images_params "images_copyright" $images_copyright) }} {{ partial "load-photoswipe.html" (dict "page" .) }} + {{ end }} {{ define "lists" }} |