Skip to content

Commit b2ec1ba

Browse files
authored
Merge branch 'New-Carousel' into de-emphasize-column-section
2 parents e4cd32f + 5ee4663 commit b2ec1ba

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

_includes/latest-posts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2 class="post-list-heading">{{ page.list_title }}</h2>
99
<h3>
1010
<a class="" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
1111
</h3>
12-
<p>{{ post.author }}</p>
12+
<p>{{ post.date | date: date_format }} by: {{ post.author }}</p>
1313
</div>
1414
{%- assign count = count | plus: 1 -%} {%- endif -%} {%- endfor -%}
1515
</div>

assets/css/bpd.css

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,12 @@ ul.speaking-list {
563563
background-color: #fff;
564564
}
565565

566+
566567
.info h2 {
567568
margin: 10px 0;
568569
font-size: 1.5em;
569570
color: #333;
570571
}
571-
572572
.info p {
573573
margin: 0;
574574
font-size: 1em;
@@ -625,4 +625,38 @@ button.next:focus {
625625
border: 1px solid #ddd;
626626
border-radius: 8px;
627627
background-color: #f9f9f9;
628+
629+
.latest-posts-grid {
630+
display: flex;
631+
flex-wrap: wrap;
632+
gap: 20px;
633+
}
634+
635+
.post-item {
636+
flex: 1 1 calc(33.333% - 20px);
637+
box-sizing: border-box;
638+
padding: 10px;
639+
border: 1px solid #ddd;
640+
border-radius: 8px;
641+
background-color: #f9f9f9;
642+
}
643+
644+
.post-item h3 {
645+
margin-top: 0;
646+
}
647+
648+
.post-item p {
649+
margin: 10px 0 0;
650+
}
651+
652+
@media (max-width: 800px) {
653+
.post-item {
654+
flex: 1 1 calc(50% - 20px);
655+
}
656+
}
657+
658+
@media (max-width: 500px) {
659+
.post-item {
660+
flex: 1 1 100%;
661+
}
628662
}

tests/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def test_first_slide_matches_latest_post(page_url: tuple[Page, str]) -> None:
140140
"/blog",
141141
),
142142
)
143+
143144
def stem_description(
144145
path: pathlib.Path,
145146
) -> Generator[tuple[str, frontmatter.Post], None, None]:

0 commit comments

Comments
 (0)