Skip to content

Commit 301b290

Browse files
4-column grid layout when there's no sidebar
1 parent fd04595 commit 301b290

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
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: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,8 @@ Search LOGO Login Subscribe
15471547
margin-top: 0;
15481548
}
15491549

1550-
.gh-navigation + .gh-container .gh-container-title {
1550+
.gh-navigation + .gh-container .gh-container-title,
1551+
:is(.paged, .tag-template, .author-template) .gh-container:not(.has-sidebar) .gh-container-title {
15511552
display: none;
15521553
}
15531554

@@ -1607,10 +1608,14 @@ Search LOGO Login Subscribe
16071608

16081609
/* 11.2. Without sidebar */
16091610

1610-
.gh-container:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
1611+
.gh-container.is-list:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
16111612
grid-column: 3 / span 12;
16121613
}
16131614

1615+
.gh-container.is-grid:not(.has-sidebar) .gh-main {
1616+
grid-column: 1 / -1;
1617+
}
1618+
16141619
@media (max-width: 1199px) {
16151620
.gh-container-inner {
16161621
display: block;
@@ -1724,7 +1729,7 @@ Search LOGO Login Subscribe
17241729

17251730
.gh-container.is-grid .gh-feed {
17261731
display: grid;
1727-
grid-template-columns: repeat(3, 1fr);
1732+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
17281733
row-gap: calc(var(--grid-gap) * 1.5);
17291734
overflow: hidden;
17301735
}

partials/components/post-list.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@
2222
{{#match @custom.header_style "Highlight"}}
2323
{{#match posts.length ">=" 10}}
2424
{{#if @custom.highlight_featured_posts}}
25-
{{#foreach posts from="5" limit="9"}}
25+
{{#foreach posts from="5" limit="8"}}
2626
{{> "post-card"}}
2727
{{/foreach}}
2828
{{else}}
29-
{{#foreach posts from="11" limit="9"}}
29+
{{#foreach posts from="11" limit="8"}}
3030
{{> "post-card"}}
3131
{{/foreach}}
3232
{{/if}}
3333
{{else}}
34-
{{#foreach posts limit="9"}}
34+
{{#foreach posts limit="8"}}
3535
{{> "post-card"}}
3636
{{/foreach}}
3737
{{/match}}
3838
{{else match @custom.header_style "Magazine"}}
3939
{{#match posts.length ">=" 7}}
40-
{{#foreach posts from="8" limit="9"}}
40+
{{#foreach posts from="8" limit="8"}}
4141
{{> "post-card"}}
4242
{{/foreach}}
4343
{{else}}
44-
{{#foreach posts limit="9"}}
44+
{{#foreach posts limit="8"}}
4545
{{> "post-card"}}
4646
{{/foreach}}
4747
{{/match}}
4848
{{else}}
49-
{{#foreach posts limit="9"}}
49+
{{#foreach posts limit="8"}}
5050
{{> "post-card"}}
5151
{{/foreach}}
5252
{{/match}}

0 commit comments

Comments
 (0)