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 { .no-logo .gh-head-menu {
margin-left: -32px; margin-left: -40px;
} }
.gh-head-menu .nav { .gh-head-menu .nav {

View File

@ -18,20 +18,22 @@
{{ghost_head}} {{ghost_head}}
</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"> <div class="viewport">
<header id="gh-head" class="gh-head outer"> <header id="gh-head" class="gh-head outer">
<nav class="gh-head-inner inner"> <nav class="gh-head-inner inner">
<div class="gh-head-brand"> <div class="gh-head-brand">
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}"> {{#if @custom.site_logo_in_main_navigation}}
{{#if @site.logo}} <a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
<img src="{{@site.logo}}" alt="{{@site.title}}" /> {{#if @site.logo}}
{{else}} <img src="{{@site.logo}}" alt="{{@site.title}}" />
{{@site.title}} {{else}}
{{/if}} {{@site.title}}
</a> {{/if}}
</a>
{{/if}}
<a class="gh-burger" role="button"> <a class="gh-burger" role="button">
<div class="gh-burger-box"> <div class="gh-burger-box">
<div class="gh-burger-inner"></div> <div class="gh-burger-inner"></div>

View File

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

View File

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