Finish up photostream grid and single layouts
This commit is contained in:
parent
1bf8c28f23
commit
a74703beb5
7 changed files with 355 additions and 0 deletions
9
layouts/partials/photostream/image-resources.html
Normal file
9
layouts/partials/photostream/image-resources.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ $thumbnailResourcesNames := slice "thumbnail" "Thumbnail" "thumbnail.jpg" "Thumbnail.jpg" }}
|
||||
{{ with index .Params "thumbnail" }}
|
||||
{{ $thumbnailResourcesNames = $thumbnailResourcesNames | append . }}
|
||||
{{ end }}
|
||||
|
||||
{{ $imageResources := .Resources.ByType "image" }}
|
||||
{{ $photos := where $imageResources "Name" "not in" $thumbnailResourcesNames }}
|
||||
|
||||
{{ return $photos }}
|
Loading…
Add table
Add a link
Reference in a new issue