Skip to content

Commit 3751ecf

Browse files
committed
Change the top page to grid layout
1 parent f4894c4 commit 3751ecf

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ defaults:
9292
- nav: archive
9393

9494
# Outputting
95-
paginate: 8
95+
paginate: 6
9696
timezone: Asia/Tokyo
9797

9898
# Archive

_sass/custom.scss

+15
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,21 @@ html {
9595
}
9696
}
9797
}
98+
.grid-max-cols-3 {
99+
.grid__item {
100+
@include breakpoint($medium) {
101+
width: span(4 of 12);
102+
&:nth-child(3n + 1) {
103+
clear: both;
104+
margin-left: 0;
105+
}
106+
&:nth-child(3n + 2), &:nth-child(3n + 3) {
107+
clear: none;
108+
margin-left: gutter(1 of 12);
109+
}
110+
}
111+
}
112+
}
98113
.no-footer-meta {
99114
footer.page__meta {
100115
display: none;

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: home
3-
classes: wide
3+
classes: wide grid-max-cols-3
44
author_profile: true
5+
entries_layout: grid
56
---

0 commit comments

Comments
 (0)