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>
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
<div class="container py-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-4 text-center">
|
||||
<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>
|
||||
{{ 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 }}
|
||||
© {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
|
||||
<div class="text-secondary">
|
||||
Made with
|
||||
@@ -21,4 +23,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user