diff options
author | Ghyslain Leclerc <ghleclerc@gmail.com> | 2016-12-29 05:33:27 +0300 |
---|---|---|
committer | Ghyslain Leclerc <ghleclerc@gmail.com> | 2016-12-29 05:33:27 +0300 |
commit | bf5081d4eee91ed79d2dc273772a4130114e65f6 (patch) | |
tree | e41410a6b9891003d1d82c1567a7ac9896407668 | |
parent | e455fb9170413f696e23572863a3d277bb0b5875 (diff) |
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.
-rw-r--r-- | layouts/partials/page_footer.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/page_footer.html b/layouts/partials/page_footer.html index b76e34f..19a39b5 100644 --- a/layouts/partials/page_footer.html +++ b/layouts/partials/page_footer.html @@ -6,11 +6,13 @@ {{ partial "bio.html" . }} </p> </div> + {{ if isset .Site.Author "flickrid" | and ( not ( eq .Site.Author.flickrid "" ) ) }} <div> <h3><a href="https://www.flickr.com/photos/{{ .Site.Author.flickrid }}/">Photo Stream</a></h3> <div id="photos"></div> </div> </div> + {{ end }} </div> {{ if .Site.Params.showcopyright }} |