File tree Expand file tree Collapse file tree 5 files changed +43
-9
lines changed Expand file tree Collapse file tree 5 files changed +43
-9
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ const socialLinks = [
109
109
{ website && (
110
110
<div class = " website-btn-container flex flex-col sm:flex-row justify-center gap-2 mt-4" >
111
111
112
- { ! isSponsorPage &&
112
+ { ! isSponsorPage && sponsor . body &&
113
113
<a href = { ` /sponsor/${sponsor .id } ` } class = " website-btn-outline" >
114
114
About { title }
115
115
</a >
Original file line number Diff line number Diff line change @@ -16,3 +16,14 @@ socials:
16
16
bluesky :
17
17
tier : Partners
18
18
---
19
+
20
+ This is the 17th edition of the Conference and it is organized by a team made up
21
+ of Django practitioners from all levels. We welcome people from all over the
22
+ world.
23
+
24
+ Our conference seeks to educate and develop new skills, best practices, and
25
+ ideas for the benefit of attendees, developers, speakers, and everyone in our
26
+ global Django Community, not least those watching the talks online.
27
+
28
+ This year it will take place in the beautiful city of Dublin. Don't miss the
29
+ chance to join us for five days of talks, workshops, and sprints.
Original file line number Diff line number Diff line change 2
2
import { getCollection } from " astro:content" ;
3
3
import Layout from " @layouts/SectionLayout.astro" ;
4
4
import SponsorCard from " @components/SponsorCard.astro" ;
5
+ import Headline from " @ui/Headline.astro" ;
5
6
6
7
const sponsors = await getCollection (" sponsors" , ({ data }) => {
7
8
const isProd = import .meta .env .MODE === " production" ;
@@ -16,11 +17,17 @@ const sponsors = await getCollection("sponsors", ({ data }) => {
16
17
title =" EuroPython 2025 | July 14th-20th 2025 | Prague, Czech Republic & Remote"
17
18
description =" EuroPython is the largest Python conference in Europe. We are looking forward to seeing you in Prague, Czech Republic & Remote from July 14th-20th 2025."
18
19
>
19
- { sponsors .length > 0 && (
20
- <section class = " grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 p-4 md:p-6" >
21
- { sponsors .map ((sponsor ) => (
22
- <SponsorCard sponsor = { sponsor .id } />
23
- ))}
24
- </section >
25
- )}
20
+
21
+
22
+ <Headline id =" community-partners" title =" Community partners" center =true />
23
+ <p >
24
+ EuroPython is a community-driven conference, we wouldn't be able to make as much impact without the support of our brilliant Community Partners. Get to know our partners better below (alphabetical order).
25
+ </p >
26
+ { sponsors .length > 0 && (
27
+ <div class = " grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 p-4 md:p-6" >
28
+ { sponsors .map ((sponsor ) => (
29
+ <SponsorCard sponsor = { sponsor .id } />
30
+ ))}
31
+ </div >
32
+ )}
26
33
</Layout >
Original file line number Diff line number Diff line change @@ -3,26 +3,39 @@ import Layout from "@layouts/SectionLayout.astro";
3
3
import JobCard from " @components/JobCard.astro" ;
4
4
import SponsorCard from " @components/SponsorCard.astro" ;
5
5
import TwoCols from " @components/TwoCols.astro" ;
6
+ import { getCollection } from " astro:content" ;
6
7
7
8
8
9
const { sponsor, job : jobId } = Astro .params ;
9
10
10
11
const job = ` ${sponsor }/${jobId } ` ;
11
12
12
13
export async function getStaticPaths() {
14
+
15
+
16
+ const jobs = await getCollection (" jobs" , ({ data }) => {
17
+ return import .meta .env .MODE === " production" ? data .draft !== true : true ;
18
+ });
19
+ const jobIds = new Set (jobs .map ((job ) => job .id ));
20
+
13
21
const jobFiles = import .meta .glob (" @src/content/sponsors/*/!(index).md" );
14
22
return Object .keys (jobFiles )
15
23
.map ((path ) => {
16
24
const match = path .match (/ \/ sponsors\/ ([^ /] + )\/ ([^ /] + )\. md$ / );
17
25
if (! match ) return null ;
18
26
19
27
const [, sponsorId, jobId] = match ;
28
+
29
+ if (! jobIds .has (` ${sponsorId }/${jobId } ` )) return null ;
30
+
20
31
return {
21
32
params: { sponsor: sponsorId , job: jobId },
22
33
};
23
34
})
24
35
.filter (Boolean );
25
36
}
37
+
38
+
26
39
---
27
40
28
41
<Layout
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ import { getCollection } from "astro:content";
10
10
const {sponsor } = Astro .params ;
11
11
12
12
export async function getStaticPaths() {
13
- const sponsors = await getCollection (" sponsors" );
13
+
14
+ const sponsors = await getCollection (" sponsors" , ({ data }) => {
15
+ return import .meta .env .MODE === " production" ? data .draft !== true : true ;
16
+ });
14
17
15
18
return sponsors .map ((sponsor : any ) => ({
16
19
params: {
You can’t perform that action at this time.
0 commit comments