diff --git a/_includes/join-us-on-social-media.html b/_includes/join-us-on-social-media.html new file mode 100644 index 0000000..92f1bee --- /dev/null +++ b/_includes/join-us-on-social-media.html @@ -0,0 +1,12 @@ +
+

Not a member yet?

+

Are you a Black Python Developer

+
+ Join our Discord + Join our LinkedIn Group +
+
diff --git a/_includes/join_us.html b/_includes/join_us.html index 4948453..0b94150 100644 --- a/_includes/join_us.html +++ b/_includes/join_us.html @@ -1,17 +1,4 @@ -
-
-

Not a member yet?

-

Are you a Black Python Developer

- -
-
+

Support Black Python Devs

diff --git a/_includes/latest-posts.html b/_includes/latest-posts.html index 40fbf0e..c192506 100644 --- a/_includes/latest-posts.html +++ b/_includes/latest-posts.html @@ -9,10 +9,7 @@

{{ page.list_title }}

{{ post.title | escape }}

-

{{ post.date | date: date_format }}

- {%- if site.show_excerpts -%} -

{{ post.description }}

- {%- endif -%} +

{{ post.date | date: date_format }} by: {{ post.author }}

{%- assign count = count | plus: 1 -%} {%- endif -%} {%- endfor -%} diff --git a/_layouts/index.html b/_layouts/index.html index 3d6314b..3a6f8a2 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -25,8 +25,19 @@

{{ post.title }}

DjangoCon US 2023 - {%- include latest-posts.html -%} - {%- include join_us.html -%} +
+
+
+ {% include latest-posts.html %} +
+
+ {% include join-us-on-social-media.html %} +
+
+
+ + {% include join_us.html %} + {%- include partnerships.html -%} {%- include newsletter_form.html newsletter_title="Learn what the community and its members are doing from our newsletter!" -%} diff --git a/assets/css/bpd.css b/assets/css/bpd.css index b82df24..f66cfb9 100644 --- a/assets/css/bpd.css +++ b/assets/css/bpd.css @@ -563,12 +563,12 @@ ul.speaking-list { background-color: #fff; } + .info h2 { margin: 10px 0; font-size: 1.5em; color: #333; } - .info p { margin: 0; font-size: 1em; @@ -613,6 +613,18 @@ button.next:focus { .next { right: 10px; } +.grid-container { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 20px; + margin-top: 20px; +} + +.grid-item { + padding: 15px; + border: 1px solid #ddd; + border-radius: 8px; + background-color: #f9f9f9; .latest-posts-grid { display: flex; diff --git a/tests/test.py b/tests/test.py index 8ca1b66..e1e7e2e 100644 --- a/tests/test.py +++ b/tests/test.py @@ -141,14 +141,6 @@ def test_first_slide_matches_latest_post(page_url: tuple[Page, str]) -> None: ), ) -# def test_page_description_in_index_and_blog(page_url: tuple[Page, str], url: str): -# """Checks for the descriptions data in the blog posts. There should be some objects with the class `post-description`""" -# page, live_server_url = page_url -# page.goto(f"{live_server_url}{url}") -# expect(page.locator("p.post-description").first).to_be_visible() -# expect(page.locator("p.post-description").first).not_to_be_empty() - - def stem_description( path: pathlib.Path, ) -> Generator[tuple[str, frontmatter.Post], None, None]: