Merge pull request #172 from MarekPikula/disable-footer-logo
Fix logo display if no logo/favicon are set
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>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
if(resetHeaderStyle) {
|
if(resetHeaderStyle) {
|
||||||
profileHeaderElem.classList.remove("showHeaderOnTop");
|
profileHeaderElem.classList.remove("showHeaderOnTop");
|
||||||
}
|
}
|
||||||
prevScrollPos = currentScrollPos;
|
prevScrollPos = currentScrollPos;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<div class="container-fluid mx-xs-2 mx-sm-5 mx-md-5 mx-lg-5">
|
<div class="container-fluid mx-xs-2 mx-sm-5 mx-md-5 mx-lg-5">
|
||||||
<!-- navbar brand -->
|
<!-- navbar brand -->
|
||||||
<a class="navbar-brand primary-font text-wrap" href="{{ .Site.BaseURL | relURL }}">
|
<a class="navbar-brand primary-font text-wrap" href="{{ .Site.BaseURL | relURL }}">
|
||||||
{{ if and (or (.Site.Params.favicon) (.Site.Params.navbar.brandLogo)) .Site.Params.navbar.showBrandLogo | default true }}
|
{{ if and (or (.Site.Params.favicon) (.Site.Params.navbar.brandLogo)) (.Site.Params.navbar.showBrandLogo | default true) }}
|
||||||
<img src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}" width="30" height="30"
|
<img src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}" width="30" height="30"
|
||||||
class="d-inline-block align-top">
|
class="d-inline-block align-top">
|
||||||
{{ .Site.Params.navbar.brandName | default .Site.Params.title }}
|
{{ .Site.Params.navbar.brandName | default .Site.Params.title }}
|
||||||
|
|||||||
Reference in New Issue
Block a user