Skip to content

Commit

Permalink
Fix disabling navbar logo
Browse files Browse the repository at this point in the history
Previously, even if `navbar.showBrandLogo` was set to false, the navbar
logo would be shown.

Signed-off-by: Marek Pikuła <marek@serenitycode.dev>
  • Loading branch information
MarekPikula committed Jun 1, 2024
1 parent e36a0e7 commit 63ed2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/sections/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
if(resetHeaderStyle) {
profileHeaderElem.classList.remove("showHeaderOnTop");
}
prevScrollPos = currentScrollPos;
prevScrollPos = currentScrollPos;
});
</script>
{{ end }}
Expand All @@ -51,7 +51,7 @@
<div class="container-fluid mx-xs-2 mx-sm-5 mx-md-5 mx-lg-5">
<!-- navbar brand -->
<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"
class="d-inline-block align-top">
{{ .Site.Params.navbar.brandName | default .Site.Params.title }}
Expand Down

0 comments on commit 63ed2d7

Please sign in to comment.