Made the Flickr images in the footer optional.

If the FlickID parameter in the Author section in the config is not set or if it
is set to the empty string, the section is not inserted in the footer.
This commit is contained in:
Ghyslain Leclerc 2016-12-28 21:33:27 -05:00
parent e455fb9170
commit bf5081d4ee

View file

@ -6,11 +6,13 @@
{{ partial "bio.html" . }} {{ partial "bio.html" . }}
</p> </p>
</div> </div>
{{ if isset .Site.Author "flickrid" | and ( not ( eq .Site.Author.flickrid "" ) ) }}
<div> <div>
<h3><a href="https://www.flickr.com/photos/{{ .Site.Author.flickrid }}/">Photo Stream</a></h3> <h3><a href="https://www.flickr.com/photos/{{ .Site.Author.flickrid }}/">Photo Stream</a></h3>
<div id="photos"></div> <div id="photos"></div>
</div> </div>
</div> </div>
{{ end }}
</div> </div>
{{ if .Site.Params.showcopyright }} {{ if .Site.Params.showcopyright }}