2018-08-17 23:16:54 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
<div id="main">
|
|
|
|
<div class="container">
|
|
|
|
{{ partial "content.html" . }}
|
|
|
|
|
|
|
|
{{ $id := .Params.photoset }}
|
2020-09-12 11:29:43 +01:00
|
|
|
{{ $query := querify "format" "json" "nojsoncallback" "1" "api_key" (getenv "FLICKR_API_KEY") }}
|
2018-08-17 23:16:54 +01:00
|
|
|
|
2020-09-12 11:29:43 +01:00
|
|
|
{{ $method := querify "method" "flickr.photosets.getPhotos" "user_id" (getenv "FLICKR_USER_ID") "photoset_id" $id "extras" "url_k,url_q" }}
|
2018-12-01 21:19:13 +00:00
|
|
|
{{ $photoset := (getJSON "https://api.flickr.com/services/rest/?" $query "&" $method).photoset }}
|
2018-08-17 23:16:54 +01:00
|
|
|
|
|
|
|
<div id="light-gallery" class="row">
|
2018-12-01 21:19:13 +00:00
|
|
|
{{ range $element := $photoset.photo }}
|
|
|
|
<a href="{{ $element.url_k }}" title="{{ $element.title }}" class="col-md-2 col-xs-12">
|
2021-02-06 23:09:10 +00:00
|
|
|
<img src="{{ $element.url_q }}" alt="{{ $element.title }}" referrerpolicy="no-referrer"/>
|
2018-08-17 23:16:54 +01:00
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4>
|
|
|
|
<a href="{{ .Site.Data.social.accounts.flickr.link }}sets/{{ $id }}/">
|
2018-12-01 21:19:13 +00:00
|
|
|
View entire <i>{{ $photoset.title }}</i> album on Flickr
|
2018-08-17 23:16:54 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2018-08-17 23:19:40 +01:00
|
|
|
{{ partial "share.html" . }}
|
2020-07-24 22:44:08 +01:00
|
|
|
{{ partial "related-content.html" . }}
|
2018-08-17 23:16:54 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|