Merge pull request #94 from benarmstead/master

Add showBrandLogo flag to allow hiding in nav bar
This commit is contained in:
Guru Sabarish
2023-02-06 22:12:05 +05:30
committed by GitHub
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ outputs:
page:
- "HTML"
- "RSS"
Paginate: 3
enableRobotsTXT: true
# disqusShortname: your-disqus-shortname
@@ -102,6 +102,7 @@ params:
navbar:
align: ms-auto # Left: ms-auto | center: mx-auto | right: me-auto | Default: ms-auto
# brandLogo: "/logo.png" # Logo for the brand | default is the favicon variable
# showBrandLogo: false # Show brand logo in nav bar | default is true
brandName: "Hugo Profile" # Brand name for the brand | default is the title variable
disableSearch: false
menus:
@@ -363,7 +364,7 @@ params:
# List pages like blogs and posts
listPages:
disableFeaturedImage: false
# Single pages like blog and post
singlePages:
readTime:
+1 -1
View File
@@ -28,7 +28,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 or (.Site.Params.favicon) (.Site.Params.navbar.brandLogo) }}
{{ 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 }}