Skip to content

Commit c4deed9

Browse files
authored
bugfix: sponsor packages page now has the same width as other pages (#1529)
Previously, the sponsor packages page (`/sponsorship/sponsor/`) was not the same width as all other content pages (it was narrower and looked odd when navigating between pages). This was due to `MarkdownLayout` having different default styling than `SectionLayout`, the latter of which is used for most pages. I have fixed it by adding a `full` parameter to the frontmatter which is then handled in `MarkdownLayout` via `[...slug].astro` to allow pages to be full width. The `sponsor.mdx` page was updated with `full: true`. # Screenshots ## Before <img width="2958" height="2196" alt="CleanShot 2026-03-09 at 05 18 16@2x" src="https://github.com/user-attachments/assets/670f6278-610b-443d-b2db-4ceacd4d9e5e" /> ## After <img width="2956" height="2300" alt="CleanShot 2026-03-09 at 05 18 34@2x" src="https://github.com/user-attachments/assets/48ca0eb8-33ed-4765-87ba-68faf644bb66" /> # Mobile Designed / layout is unchanged on mobile. <!-- readthedocs-preview ep-website start --> 🖼️ Preview available 🖼️ : https://ep-website--1529.org.readthedocs.build/ <!-- readthedocs-preview ep-website end -->
1 parent f5a6327 commit c4deed9

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/content/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const pages = defineCollection({
1111
title: z.string(),
1212
subtitle: z.string(),
1313
toc: z.boolean().optional().default(true),
14+
full: z.boolean().optional().default(false),
1415
}),
1516
});
1617

src/content/pages/sponsorship/sponsor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ subtitle:
55
and the opportunity to present yourself and your company to one
66
of the largest and most diverse Python communities in Europe and beyond.
77
toc: false
8+
full: true
89
---
910

1011
# Why Sponsor EuroPython?

src/pages/[...slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const description = post.data.subtitle;
6464
---
6565

6666
<Layout title={title} description={description} toc={post.data.toc}>
67-
<Prose class="pb-20">
67+
<Prose class="pb-20" full={post.data.full}>
6868
<Content
6969
components={{
7070
Button,

0 commit comments

Comments
 (0)