22layout: default
33---
44
5- < style >
6- .post-list {
7- list-style : none;
8- margin-left : 0 ;
9- }
10- .post-item {
11- display : flex;
12- gap : 1.5rem ;
13- margin-bottom : 2rem ;
14- padding-bottom : 2rem ;
15- border-bottom : 1px solid # e8e8e8 ;
16- }
17- .post-thumbnail {
18- flex-shrink : 0 ;
19- width : 200px ;
20- }
21- .post-thumbnail img {
22- width : 100% ;
23- height : auto;
24- border-radius : 4px ;
25- display : block;
26- }
27- .post-content {
28- flex : 1 ;
29- min-width : 0 ;
30- }
31- .post-content h3 {
32- margin-top : 0 ;
33- }
34- @media (max-width : 600px ) {
35- .post-item {
36- flex-direction : column;
37- }
38- .post-thumbnail {
39- width : 100% ;
40- }
41- }
42- </ style >
43-
445< div class ="home ">
456 {%- if page.title -%}
467 < h1 class ="page-heading "> {{ page.title }}</ h1 >
@@ -55,27 +16,46 @@ <h1 class="page-heading">{{ page.title }}</h1>
5516 {% endif %}
5617
5718 {%- if posts.size > 0 -%}
19+ {%- if page.list_title -%}
20+ < h2 class ="post-list-heading "> {{ page.list_title }}</ h2 >
21+ {%- endif -%}
5822 < ul class ="post-list ">
5923 {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
6024 {%- for post in posts -%}
61- < li class =" post-item " >
25+ < li >
6226 {%- if post.image -%}
63- < div class ="post-thumbnail ">
64- < a href ="{{ post.url | relative_url }} ">
65- < img src ="{{ post.image | relative_url }} " alt ="{{ post.title | escape }} ">
27+ < img src ="{{ post.image | relative_url }} " alt ="" class ="post-thumbnail " />
28+ {%- endif -%}
29+ < span class ="post-meta "> {{ post.date | date: date_format }}</ span >
30+ < h3 >
31+ < a class ="post-link " href ="{{ post.url | relative_url }} ">
32+ {{ post.title | escape }}
6633 </ a >
67- </ div >
34+ </ h3 >
35+ {%- if site.show_excerpts -%}
36+ {{ post.excerpt }}
6837 {%- endif -%}
69- < div class ="post-content ">
70- < span class ="post-meta "> {{ post.date | date: date_format }}</ span >
71- < h3 >
72- < a class ="post-link " href ="{{ post.url | relative_url }} ">
73- {{ post.title | escape }}
74- </ a >
75- </ h3 >
76- </ div >
7738 </ li >
7839 {%- endfor -%}
7940 </ ul >
41+
42+ {% if site.paginate %}
43+ < div class ="pager ">
44+ < ul class ="pagination ">
45+ {%- if paginator.previous_page %}
46+ < li > < a href ="{{ paginator.previous_page_path | relative_url }} " class ="previous-page "> {{ paginator.previous_page }}</ a > </ li >
47+ {%- else %}
48+ < li > < div class ="pager-edge "> •</ div > </ li >
49+ {%- endif %}
50+ < li > < div class ="current-page "> {{ paginator.page }}</ div > </ li >
51+ {%- if paginator.next_page %}
52+ < li > < a href ="{{ paginator.next_page_path | relative_url }} " class ="next-page "> {{ paginator.next_page }}</ a > </ li >
53+ {%- else %}
54+ < li > < div class ="pager-edge "> •</ div > </ li >
55+ {%- endif %}
56+ </ ul >
57+ </ div >
58+ {%- endif %}
8059 {%- endif -%}
60+
8161</ div >
0 commit comments