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);
|
||||
}
|
||||
|
||||
.gh-header + .gh-cta {
|
||||
.gh-header:is(.is-highlight, .is-magazine) + .gh-cta {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@ -1975,11 +1975,11 @@ Search LOGO Login Subscribe
|
||||
/* 14.3. Page without header */
|
||||
|
||||
.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) {
|
||||
margin-bottom: 64px;
|
||||
margin-bottom: 6vw;
|
||||
}
|
||||
|
||||
.page-template .gh-footer {
|
||||
|
@ -139,7 +139,7 @@
|
||||
"Search",
|
||||
"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",
|
||||
"group": "homepage"
|
||||
},
|
||||
|
@ -3,6 +3,7 @@
|
||||
{{#match @custom.header_style "!=" "Landing"}}
|
||||
{{#match @custom.header_style "!=" "Search"}}
|
||||
{{#match @custom.header_style "!=" "Off"}}
|
||||
{{#match posts.length ">=" 7}}
|
||||
<section class="gh-cta gh-outer">
|
||||
<div class="gh-cta-inner gh-inner">
|
||||
<div class="gh-cta-content">
|
||||
@ -19,5 +20,6 @@
|
||||
{{/match}}
|
||||
{{/match}}
|
||||
{{/match}}
|
||||
{{/match}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
@ -1,7 +1,7 @@
|
||||
{{#match headerStyle "!=" "Off"}}
|
||||
|
||||
{{#match headerStyle "Highlight"}}
|
||||
{{#match posts.length ">=" 10}}
|
||||
{{#match posts.length ">=" 7}}
|
||||
{{> "components/header-content"}}
|
||||
{{/match}}
|
||||
{{else match headerStyle "Magazine"}}
|
||||
|
@ -18,9 +18,10 @@
|
||||
<main class="gh-main">
|
||||
<div class="gh-feed">
|
||||
|
||||
{{!-- Homepage --}}
|
||||
{{#match feed "home"}}
|
||||
{{#match @custom.header_style "Highlight"}}
|
||||
{{#match posts.length ">=" 10}}
|
||||
{{#match posts.length ">=" 7}}
|
||||
{{#if @custom.highlight_featured_posts}}
|
||||
{{#get "posts" include="authors" limit="16"}}
|
||||
{{#foreach posts from="5" limit="12"}}
|
||||
@ -64,6 +65,7 @@
|
||||
{{/match}}
|
||||
{{/match}}
|
||||
|
||||
{{!-- All posts --}}
|
||||
{{#match feed "index"}}
|
||||
{{#match pagination.page 2}}
|
||||
{{#get "posts" include="authors" limit=@config.posts_per_page as |recent|}}
|
||||
@ -77,12 +79,14 @@
|
||||
{{/foreach}}
|
||||
{{/match}}
|
||||
|
||||
{{!-- Tag and author pages --}}
|
||||
{{#match feed "archive"}}
|
||||
{{#foreach posts}}
|
||||
{{> "post-card"}}
|
||||
{{/foreach}}
|
||||
{{/match}}
|
||||
|
||||
{{!-- Recent posts --}}
|
||||
{{#match feed "recent"}}
|
||||
{{#get "posts" include="authors" filter="id:-{{post.id}}" limit="4" as |next|}}
|
||||
{{#foreach next}}
|
||||
|
Loading…
Reference in New Issue
Block a user