1
Fork 0

Add smallpiece 2017 gallery

This commit is contained in:
Jake Howard 2017-08-05 20:41:29 +01:00
parent 7a3121627b
commit d214689cd8
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,6 @@
---
title: Smallpiece 2017
image: https://farm5.staticflickr.com/4426/35552704294_5aa52e2ed6_k_d.jpg
linkTitle: 2017
---

View file

@ -0,0 +1,7 @@
---
title: Gallery
image: https://c1.staticflickr.com/5/4433/36343562896_0226cc3535_k.jpg
---
{{% flickr 72157683796439222 %}}

View file

@ -1,7 +1,7 @@
{{ $id := .Get 0 }}
{{ $query := querify "format" "json" "nojsoncallback" "1" "api_key" .Site.Data.flickr.api_key }}
{{ $method := querify "method" "flickr.photosets.getPhotos" "user_id" .Site.Data.flickr.user_id "photoset_id" $id "extras" "url_o" }}
{{ $method := querify "method" "flickr.photosets.getPhotos" "user_id" .Site.Data.flickr.user_id "photoset_id" $id "extras" "url_l" }}
{{ $photoset_orig:= (getJSON "https://api.flickr.com/services/rest/?" $query "&" $method).photoset }}
{{ $method := querify "method" "flickr.photosets.getPhotos" "user_id" .Site.Data.flickr.user_id "photoset_id" $id "extras" "url_sq" }}