Fix wrong conditions for @custom.site_logo_in_main_navigation

This commit is contained in:
Sodbileg Gansukh 2022-05-19 20:40:09 +08:00
parent 21c6f59a61
commit 6439992db2
6 changed files with 17 additions and 15 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -291,7 +291,7 @@ body:not(.has-cover-image) .site-header-content:not(.left-aligned) {
}
.no-logo .gh-head-menu {
margin-left: -32px;
margin-left: -40px;
}
.gh-head-menu .nav {

View File

@ -18,13 +18,14 @@
{{ghost_head}}
</head>
<body class="{{body_class}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Modern sans-serif"}} has-sans-body{{/match}}{{#if @custom.show_publication_cover}} has-cover-image{{/if}}{{#is "home"}}{{#match @custom.header_style "!=" "Hidden"}}{{#if @custom.site_logo_in_main_navigation}} no-logo{{/if}}{{/match}}{{/is}}">
<body class="{{body_class}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Modern sans-serif"}} has-sans-body{{/match}}{{#if @custom.show_publication_cover}} has-cover-image{{/if}}{{#is "home"}}{{#unless @custom.site_logo_in_main_navigation}} no-logo{{/unless}}{{/is}}">
<div class="viewport">
<header id="gh-head" class="gh-head outer">
<nav class="gh-head-inner inner">
<div class="gh-head-brand">
{{#if @custom.site_logo_in_main_navigation}}
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}" />
@ -32,6 +33,7 @@
{{@site.title}}
{{/if}}
</a>
{{/if}}
<a class="gh-burger" role="button">
<div class="gh-burger-box">
<div class="gh-burger-inner"></div>

View File

@ -2,7 +2,7 @@
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
<div class="site-header-content outer{{#match @custom.header_style "Left aligned"}} left-aligned{{/match}}{{#unless @custom.show_publication_cover}}{{#match @custom.header_style "Hidden"}}{{/match}} no-content{{/unless}}">
<div class="site-header-content outer{{#match @custom.header_style "Left aligned"}} left-aligned{{/match}}{{#unless @custom.show_publication_cover}}{{#match @custom.header_style "Hidden"}} no-content{{/match}}{{/unless}}">
{{#if @custom.show_publication_cover}}
{{#if @site.cover_image}}
@ -22,13 +22,13 @@ into the {body} of the default.hbs template --}}
{{#match @custom.header_style "!=" "Hidden"}}
<div class="site-header-inner inner">
{{#if @custom.site_logo_in_main_navigation}}
{{#unless @custom.site_logo_in_main_navigation}}
{{#if @site.logo}}
<img class="site-logo" src="{{@site.logo}}" alt="{{@site.title}}">
{{else}}
<h1 class="site-title">{{@site.title}}</h1>
{{/if}}
{{/if}}
{{/unless}}
{{#if @site.description}}
<p class="site-description">{{@site.description}}</p>
{{/if}}

View File

@ -122,7 +122,7 @@
},
"site_logo_in_main_navigation": {
"type": "boolean",
"default": true,
"default": false,
"group": "homepage"
},
"first_post_layout": {