Add showBrandLogo flag to allow hiding in nav bar
This commit is contained in:
@@ -11,7 +11,7 @@ outputs:
|
|||||||
page:
|
page:
|
||||||
- "HTML"
|
- "HTML"
|
||||||
- "RSS"
|
- "RSS"
|
||||||
|
|
||||||
Paginate: 3
|
Paginate: 3
|
||||||
enableRobotsTXT: true
|
enableRobotsTXT: true
|
||||||
# disqusShortname: your-disqus-shortname
|
# disqusShortname: your-disqus-shortname
|
||||||
@@ -102,6 +102,7 @@ params:
|
|||||||
navbar:
|
navbar:
|
||||||
align: ms-auto # Left: ms-auto | center: mx-auto | right: me-auto | Default: ms-auto
|
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
|
# 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
|
brandName: "Hugo Profile" # Brand name for the brand | default is the title variable
|
||||||
disableSearch: false
|
disableSearch: false
|
||||||
menus:
|
menus:
|
||||||
@@ -363,7 +364,7 @@ params:
|
|||||||
# List pages like blogs and posts
|
# List pages like blogs and posts
|
||||||
listPages:
|
listPages:
|
||||||
disableFeaturedImage: false
|
disableFeaturedImage: false
|
||||||
|
|
||||||
# Single pages like blog and post
|
# Single pages like blog and post
|
||||||
singlePages:
|
singlePages:
|
||||||
readTime:
|
readTime:
|
||||||
|
|||||||
@@ -28,7 +28,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 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"
|
<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