Skip to content

Commit 09af30d

Browse files
committed
Merge branch 'de-emphasize-column-section' of github.com:TimOsahenru/blackpythondevs.github.io into de-emphasize-column-section
2 parents 0d4e78d + 21b2e78 commit 09af30d

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
@@ -564,12 +564,12 @@ ul.speaking-list {
564564
background-color: #fff;
565565
}
566566

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

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)