From 2b04cf273aa4ce6e98fcd05b0e0cfa3f094f8891 Mon Sep 17 00:00:00 2001 From: Andrew Northall Date: Mon, 9 Mar 2026 05:16:10 +0000 Subject: [PATCH] bugfix: sponsor packages page now has the same width as other pages 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`. --- src/content/config.ts | 1 + src/content/pages/sponsorship/sponsor.mdx | 1 + src/pages/[...slug].astro | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/config.ts b/src/content/config.ts index c28343788..16e59c717 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -11,6 +11,7 @@ const pages = defineCollection({ title: z.string(), subtitle: z.string(), toc: z.boolean().optional().default(true), + full: z.boolean().optional().default(false), }), }); diff --git a/src/content/pages/sponsorship/sponsor.mdx b/src/content/pages/sponsorship/sponsor.mdx index 5556f0e02..cd2a03666 100644 --- a/src/content/pages/sponsorship/sponsor.mdx +++ b/src/content/pages/sponsorship/sponsor.mdx @@ -5,6 +5,7 @@ subtitle: and the opportunity to present yourself and your company to one of the largest and most diverse Python communities in Europe and beyond. toc: false +full: true --- # Why Sponsor EuroPython? diff --git a/src/pages/[...slug].astro b/src/pages/[...slug].astro index cf6607c9d..d5f20f73e 100644 --- a/src/pages/[...slug].astro +++ b/src/pages/[...slug].astro @@ -64,7 +64,7 @@ const description = post.data.subtitle; --- - +