Minor improvements
This commit is contained in:
parent
041cc53595
commit
a28a0ae11a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1417,7 +1417,7 @@ Search LOGO Login Subscribe
|
|||||||
margin-top: max(4vw, 40px);
|
margin-top: max(4vw, 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-header + .gh-cta {
|
.gh-header:is(.is-highlight, .is-magazine) + .gh-cta {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1975,11 +1975,11 @@ Search LOGO Login Subscribe
|
|||||||
/* 14.3. Page without header */
|
/* 14.3. Page without header */
|
||||||
|
|
||||||
.page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
|
.page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
|
||||||
margin-top: 48px;
|
margin-top: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template .gh-content > *:last-child:not(.kg-width-full) {
|
.page-template .gh-content > *:last-child:not(.kg-width-full) {
|
||||||
margin-bottom: 64px;
|
margin-bottom: 6vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template .gh-footer {
|
.page-template .gh-footer {
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
"Search",
|
"Search",
|
||||||
"Off"
|
"Off"
|
||||||
],
|
],
|
||||||
"description": "Requires at least 10 posts for Highlight, and 7 posts for Magazine style",
|
"description": "Highlight & Magazine styles will default to Landing until 7 posts have been published",
|
||||||
"default": "Landing",
|
"default": "Landing",
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{{#match @custom.header_style "!=" "Landing"}}
|
{{#match @custom.header_style "!=" "Landing"}}
|
||||||
{{#match @custom.header_style "!=" "Search"}}
|
{{#match @custom.header_style "!=" "Search"}}
|
||||||
{{#match @custom.header_style "!=" "Off"}}
|
{{#match @custom.header_style "!=" "Off"}}
|
||||||
|
{{#match posts.length ">=" 7}}
|
||||||
<section class="gh-cta gh-outer">
|
<section class="gh-cta gh-outer">
|
||||||
<div class="gh-cta-inner gh-inner">
|
<div class="gh-cta-inner gh-inner">
|
||||||
<div class="gh-cta-content">
|
<div class="gh-cta-content">
|
||||||
@ -19,5 +20,6 @@
|
|||||||
{{/match}}
|
{{/match}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
|
{{/match}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/if}}
|
{{/if}}
|
@ -1,7 +1,7 @@
|
|||||||
{{#match headerStyle "!=" "Off"}}
|
{{#match headerStyle "!=" "Off"}}
|
||||||
|
|
||||||
{{#match headerStyle "Highlight"}}
|
{{#match headerStyle "Highlight"}}
|
||||||
{{#match posts.length ">=" 10}}
|
{{#match posts.length ">=" 7}}
|
||||||
{{> "components/header-content"}}
|
{{> "components/header-content"}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
{{else match headerStyle "Magazine"}}
|
{{else match headerStyle "Magazine"}}
|
||||||
|
@ -18,9 +18,10 @@
|
|||||||
<main class="gh-main">
|
<main class="gh-main">
|
||||||
<div class="gh-feed">
|
<div class="gh-feed">
|
||||||
|
|
||||||
|
{{!-- Homepage --}}
|
||||||
{{#match feed "home"}}
|
{{#match feed "home"}}
|
||||||
{{#match @custom.header_style "Highlight"}}
|
{{#match @custom.header_style "Highlight"}}
|
||||||
{{#match posts.length ">=" 10}}
|
{{#match posts.length ">=" 7}}
|
||||||
{{#if @custom.highlight_featured_posts}}
|
{{#if @custom.highlight_featured_posts}}
|
||||||
{{#get "posts" include="authors" limit="16"}}
|
{{#get "posts" include="authors" limit="16"}}
|
||||||
{{#foreach posts from="5" limit="12"}}
|
{{#foreach posts from="5" limit="12"}}
|
||||||
@ -64,6 +65,7 @@
|
|||||||
{{/match}}
|
{{/match}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
|
|
||||||
|
{{!-- All posts --}}
|
||||||
{{#match feed "index"}}
|
{{#match feed "index"}}
|
||||||
{{#match pagination.page 2}}
|
{{#match pagination.page 2}}
|
||||||
{{#get "posts" include="authors" limit=@config.posts_per_page as |recent|}}
|
{{#get "posts" include="authors" limit=@config.posts_per_page as |recent|}}
|
||||||
@ -77,12 +79,14 @@
|
|||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
|
|
||||||
|
{{!-- Tag and author pages --}}
|
||||||
{{#match feed "archive"}}
|
{{#match feed "archive"}}
|
||||||
{{#foreach posts}}
|
{{#foreach posts}}
|
||||||
{{> "post-card"}}
|
{{> "post-card"}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
|
|
||||||
|
{{!-- Recent posts --}}
|
||||||
{{#match feed "recent"}}
|
{{#match feed "recent"}}
|
||||||
{{#get "posts" include="authors" filter="id:-{{post.id}}" limit="4" as |next|}}
|
{{#get "posts" include="authors" filter="id:-{{post.id}}" limit="4" as |next|}}
|
||||||
{{#foreach next}}
|
{{#foreach next}}
|
||||||
|
Loading…
Reference in New Issue
Block a user