mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-10 02:28:02 +00:00
Fix wrong conditions for @custom.site_logo_in_main_navigation
This commit is contained in:
parent
21c6f59a61
commit
6439992db2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 {
|
||||||
|
@ -18,13 +18,14 @@
|
|||||||
{{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">
|
||||||
|
{{#if @custom.site_logo_in_main_navigation}}
|
||||||
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
|
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
|
||||||
{{#if @site.logo}}
|
{{#if @site.logo}}
|
||||||
<img src="{{@site.logo}}" alt="{{@site.title}}" />
|
<img src="{{@site.logo}}" alt="{{@site.title}}" />
|
||||||
@ -32,6 +33,7 @@
|
|||||||
{{@site.title}}
|
{{@site.title}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</a>
|
</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>
|
||||||
|
@ -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}}
|
||||||
|
@ -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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user