From d214689cd834ab2312f5692a8a6a38f0e6847314 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 5 Aug 2017 20:41:29 +0100 Subject: [PATCH] Add smallpiece 2017 gallery --- content/robotics/smallpiece/2017/_index.md | 1 + content/robotics/smallpiece/2017/gallery.md | 7 +++++++ layouts/shortcodes/flickr.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 content/robotics/smallpiece/2017/gallery.md diff --git a/content/robotics/smallpiece/2017/_index.md b/content/robotics/smallpiece/2017/_index.md index 3cac300..5fc673d 100644 --- a/content/robotics/smallpiece/2017/_index.md +++ b/content/robotics/smallpiece/2017/_index.md @@ -1,5 +1,6 @@ --- title: Smallpiece 2017 +image: https://farm5.staticflickr.com/4426/35552704294_5aa52e2ed6_k_d.jpg linkTitle: 2017 --- diff --git a/content/robotics/smallpiece/2017/gallery.md b/content/robotics/smallpiece/2017/gallery.md new file mode 100644 index 0000000..9ebe091 --- /dev/null +++ b/content/robotics/smallpiece/2017/gallery.md @@ -0,0 +1,7 @@ +--- +title: Gallery +image: https://c1.staticflickr.com/5/4433/36343562896_0226cc3535_k.jpg +--- + +{{% flickr 72157683796439222 %}} + diff --git a/layouts/shortcodes/flickr.html b/layouts/shortcodes/flickr.html index 7ccc2fc..258f630 100644 --- a/layouts/shortcodes/flickr.html +++ b/layouts/shortcodes/flickr.html @@ -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" }}