hugo-internet-weblog/layouts/partials/page_footer.html
Ghyslain Leclerc bf5081d4ee 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.
2016-12-28 21:33:27 -05:00

24 lines
827 B
HTML

<footer>
<div class="footer_text">
<div>
<h3>Hi, <a href="{{ .Site.Author.aboutpage }}">I'm {{ .Site.Author.firstname }}</a></h3>
<p>
{{ 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 }}
<div class="footer_copyright">
&copy; {{ .Now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a>
{{ with .Site.Author.location }} - Made in {{ . }}{{ end }}
</div>
{{ end }}
</footer>