@@ -5,33 +5,38 @@ layout: layout-base.njk
55
66
77<main class =" basic" >
8- <header class =" band" >
9- <h1 >{{ title }} </h1 >
10- </header >
11- <section class =" band" >{% if content .trim ().length %}
12- <div id =" content" >{{ content | safe }} </div >{% endif %}{% for post in collections .blog %}
13- <pf-card >
14- <h2 slot =" header" >{{ post .data .title }} </h2 >{% if post .data .tagline %}
15- <p class =" tagline" >{{ post .data .tagline }} </p >{% endif %}
16- {% if post .data .description %}
17- {{ post .data .description }}
18- {% endif %}
19- <a class =" cta" slot =" footer" href =" {{ post.data.page.url }}" >Read Post</a >
20- </pf-card >{% endfor %}
21- </section >
8+ {{ content | safe }}
9+
10+ <div class =" posts" >
11+ {% for post in collections .blog | reverse %}
12+ <pf-card >
13+ <h2 slot =" header" >{{ post .data .title }} </h2 >
14+ {% if post .data .tagline %}
15+ <p class =" tagline" ><a href =" {{ post.data.page.url }}" >{{ post .data .tagline }} </a ></p >{% endif %}
16+ {% if post .data .description %}
17+ {{ post .data .description }}
18+ {% endif %}
19+ <a slot =" footer" class =" cta" href =" {{ post.data.page.url }}" >Read Post</a >
20+ <time slot =" footer" datetime =" {{ post.data.page.date }}" >{{ post .data .page .date | prettyDate }} </time >
21+ </pf-card >
22+ {% endfor %}
23+ </div >
2224</main >
2325
26+
2427{% include ' _foot.njk' %}
2528
2629<style >
27- section .band {
28- display : grid ;
29- grid-template-columns : repeat (auto-fill , minmax (300px , 1fr ));
30- }
31-
32- h1 ,
33- #content {
34- grid-column : -1 /1 ;
35- }
30+ .posts {
31+ display : grid ;
32+ grid-template-columns : repeat (auto-fill , minmax (340px , 1fr ));
33+ padding : var (--pf-global--spacer--3xl , 4rem );
34+ gap : 2rem ;
35+ }
36+
37+ pf-card ::part(footer ) {
38+ justify-content : space-between ;
39+ align-items : center ;
40+ }
3641 </style >
3742
0 commit comments