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 <[email protected]>
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
<div class="container py-4">
|
<div class="container py-4">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-md-4 text-center">
|
<div class="col-md-4 text-center">
|
||||||
<div class="pb-2">
|
{{ if or .Site.Params.navbar.brandLogo .Site.Params.favicon }}
|
||||||
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
<div class="pb-2">
|
||||||
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
|
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
||||||
height="40px" width="40px">
|
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
|
||||||
</a>
|
height="40px" width="40px">
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
© {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
|
© {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
|
||||||
<div class="text-secondary">
|
<div class="text-secondary">
|
||||||
Made with
|
Made with
|
||||||
@@ -21,4 +23,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user