Skip to content

Commit a28a0ae

Browse files
Minor improvements
1 parent 041cc53 commit a28a0ae

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ Search LOGO Login Subscribe
14171417
margin-top: max(4vw, 40px);
14181418
}
14191419

1420-
.gh-header + .gh-cta {
1420+
.gh-header:is(.is-highlight, .is-magazine) + .gh-cta {
14211421
display: block;
14221422
}
14231423

@@ -1975,11 +1975,11 @@ Search LOGO Login Subscribe
19751975
/* 14.3. Page without header */
19761976

19771977
.page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
1978-
margin-top: 48px;
1978+
margin-top: 64px;
19791979
}
19801980

19811981
.page-template .gh-content > *:last-child:not(.kg-width-full) {
1982-
margin-bottom: 64px;
1982+
margin-bottom: 6vw;
19831983
}
19841984

19851985
.page-template .gh-footer {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"Search",
140140
"Off"
141141
],
142-
"description": "Requires at least 10 posts for Highlight, and 7 posts for Magazine style",
142+
"description": "Highlight & Magazine styles will default to Landing until 7 posts have been published",
143143
"default": "Landing",
144144
"group": "homepage"
145145
},

partials/components/cta.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{{#match @custom.header_style "!=" "Landing"}}
44
{{#match @custom.header_style "!=" "Search"}}
55
{{#match @custom.header_style "!=" "Off"}}
6+
{{#match posts.length ">=" 7}}
67
<section class="gh-cta gh-outer">
78
<div class="gh-cta-inner gh-inner">
89
<div class="gh-cta-content">
@@ -19,5 +20,6 @@
1920
{{/match}}
2021
{{/match}}
2122
{{/match}}
23+
{{/match}}
2224
{{/unless}}
2325
{{/if}}

partials/components/header.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{#match headerStyle "!=" "Off"}}
22

33
{{#match headerStyle "Highlight"}}
4-
{{#match posts.length ">=" 10}}
4+
{{#match posts.length ">=" 7}}
55
{{> "components/header-content"}}
66
{{/match}}
77
{{else match headerStyle "Magazine"}}

partials/components/post-list.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
<main class="gh-main">
1919
<div class="gh-feed">
2020

21+
{{!-- Homepage --}}
2122
{{#match feed "home"}}
2223
{{#match @custom.header_style "Highlight"}}
23-
{{#match posts.length ">=" 10}}
24+
{{#match posts.length ">=" 7}}
2425
{{#if @custom.highlight_featured_posts}}
2526
{{#get "posts" include="authors" limit="16"}}
2627
{{#foreach posts from="5" limit="12"}}
@@ -64,6 +65,7 @@
6465
{{/match}}
6566
{{/match}}
6667

68+
{{!-- All posts --}}
6769
{{#match feed "index"}}
6870
{{#match pagination.page 2}}
6971
{{#get "posts" include="authors" limit=@config.posts_per_page as |recent|}}
@@ -77,12 +79,14 @@
7779
{{/foreach}}
7880
{{/match}}
7981

82+
{{!-- Tag and author pages --}}
8083
{{#match feed "archive"}}
8184
{{#foreach posts}}
8285
{{> "post-card"}}
8386
{{/foreach}}
8487
{{/match}}
8588

89+
{{!-- Recent posts --}}
8690
{{#match feed "recent"}}
8791
{{#get "posts" include="authors" filter="id:-{{post.id}}" limit="4" as |next|}}
8892
{{#foreach next}}

0 commit comments

Comments
 (0)