Settings copy

This commit is contained in:
Sodbileg Gansukh 2023-09-19 18:49:41 +08:00
parent 3c79301108
commit a053e4b57d
2 changed files with 5 additions and 5 deletions

View File

@ -139,14 +139,14 @@
"Search",
"Off"
],
"description": "Landing is recommended for all sites, Highlight & Magazine are ideal for those with more content",
"description": "Landing is recommended for all sites, Highlight & Magazine for those with more content",
"default": "Landing",
"group": "homepage"
},
"use_publication_cover_as_background": {
"background_image": {
"type": "boolean",
"default": false,
"description": "A cover image can be uploaded in Brand settings",
"description": "Use the publication cover set on the Brand tab as your background",
"group": "homepage",
"visibility": "header_style:[Landing, Search]"
},

View File

@ -1,7 +1,7 @@
<section class="gh-header is-{{#match headerStyle "Magazine"}}magazine{{else match headerStyle "Highlight"}}highlight{{else}}classic{{/match}}{{#if @custom.use_publication_cover_as_background}}{{#if @site.cover_image}} has-image{{/if}}{{/if}} gh-outer">
<section class="gh-header is-{{#match headerStyle "Magazine"}}magazine{{else match headerStyle "Highlight"}}highlight{{else}}classic{{/match}}{{#if @custom.background_image}}{{#if @site.cover_image}} has-image{{/if}}{{/if}} gh-outer">
{{!-- Background image --}}
{{#if @custom.use_publication_cover_as_background}}
{{#if @custom.background_image}}
{{#match headerStyle "!=" "Magazine"}}
{{#match headerStyle "!=" "Highlight"}}
{{#if @site.cover_image}}