Files
hugo-profile/layouts/partials/sections/footer/copyright.html
T
Marek Pikuła e36a0e76d0 Don't show footer logo if images are not set
Previously, an empty image was shown if neither `navbar.brandLogo` or
`favicon` were set.

Signed-off-by: Marek Pikuła <marek@serenitycode.dev>
2024-06-02 00:51:39 +02:00

27 lines
1.1 KiB
HTML

<div class="container py-4">
<div class="row justify-content-center">
<div class="col-md-4 text-center">
{{ if or .Site.Params.navbar.brandLogo .Site.Params.favicon }}
<div class="pb-2">
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
height="40px" width="40px">
</a>
</div>
{{ end }}
&copy; {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
<div class="text-secondary">
Made with
<span class="text-danger">
&#10084;
</span>
and
<a href="https://github.com/gurusabarish/hugo-profile" target="_blank"
title="Designed and developed by gurusabarish">
Hugo Profile
</a>
</div>
</div>
</div>
</div>