Skip to content

Commit fdbac50

Browse files
authored
Update sponsors pages and fix url 3xx redirects (#1345)
Sponsors logo links from main page goes to `/sponsors#sponsor-<name>`. Sponsors pages for Diamond and Platinum. Fix sponsor headers links ( they are removed when there is no about page). Fixed 3xx url which were permanent redirections.
1 parent 8949183 commit fdbac50

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

public/prague.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/SponsorCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const logo = sponsorLogos[sponsor.id];
6767
description && (
6868
<div class="flex-1">
6969
<h2 id=`sponsor-${sponsorId}` class="sponsor text-2xl font-bold mb-2 ">
70-
{ !isSponsorPage && tier !== 'Partners' ?
70+
{ !isSponsorPage && tier !== 'Partners' && ["Diamond", "Platinum"].includes(tier) ?
7171
<a href={`/sponsor/${sponsor.id}`}>
7272
{title}
7373
</a> :
@@ -103,7 +103,7 @@ const logo = sponsorLogos[sponsor.id];
103103
{(tier !== "Partners") && website && (
104104
<div class="website-btn-container flex flex-col sm:flex-row justify-center gap-2 mt-4">
105105

106-
{ !isSponsorPage && sponsor.body && tier && ["Gold", "Platinum"].includes(tier) &&
106+
{ !isSponsorPage && sponsor.body && tier && ["Diamond", "Platinum"].includes(tier) &&
107107
<a href={`/sponsor/${sponsor.id}`} class="website-btn-outline">
108108
About {title}
109109
</a>

src/components/SponsorLogo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {
2020
} = sponsor.data;
2121
2222
const logo = sponsorLogos[sponsor.id];
23-
const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier==="Platinum" ? `/sponsor/${sponsorId}` : tier==="Media Partners" ? `/media-partners#sponsor-${sponsorId}` : tier==="Startups" ? `/startups#sponsor-${sponsorId}` : ""
23+
const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier==="Platinum" ? `/sponsor/${sponsorId}` : tier==="Media Partners" ? `/media-partners#sponsor-${sponsorId}` : tier==="Startups" ? `/startups#sponsor-${sponsorId}` : `/sponsors#sponsor-${sponsorId}`
2424
2525
---
2626

src/components/sections/subscribe.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import Button from "@ui/Button.astro";
33
import Section from "@ui/Section.astro"
44
const socialLinks = [
5-
{ href: "https://linkedin.com/sponsor/europython/", icon: "linkedin", label: "LinkedIn" },
6-
{ href: "https://instagram.com/europython/", icon: "instagram", label: "Instagram" },
7-
{ href: "https://youtube.com/channel/UC98CzaYuFNAA_gOINFB0e4Q", icon: "youtube", label: "YouTube" },
5+
{ href: "https://www.linkedin.com/company/europython/", icon: "linkedin", label: "LinkedIn" },
6+
{ href: "https://www.instagram.com/europython/", icon: "instagram", label: "Instagram" },
7+
{ href: "https://www.youtube.com/channel/UC98CzaYuFNAA_gOINFB0e4Q", icon: "youtube", label: "YouTube" },
88
{ href: "https://fosstodon.org/@europython", icon: "mastodon", label: "Mastodon" },
99
{ href: "https://bsky.app/profile/europython.eu", icon: "bluesky", label: "Bluesky" },
1010
{ href: "https://x.com/europython", icon: "x", label: "X (formerly Twitter)" },

src/data/links.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@
314314
"items": [
315315
{
316316
"name": "EuroPython Society",
317-
"path": "https://europython-society.org"
317+
"path": "https://europython-society.org/"
318318
},
319319
{
320320
"name": "EuroPython Blog",
321-
"path": "https://blog.europython.eu"
321+
"path": "https://blog.europython.eu/"
322322
}
323323
]
324324
}
@@ -343,11 +343,11 @@
343343
],
344344
"socials": {
345345
"mastodon": "https://fosstodon.org/@europython",
346-
"linkedin": "https://linkedin.com/company/europython",
346+
"linkedin": "https://www.linkedin.com/company/europython",
347347
"github": "https://github.com/europython",
348348
"bluesky": "https://bsky.app/profile/europython.eu",
349349
"twitter": "https://x.com/europython",
350-
"instagram": "https://instagram.com/europython/",
351-
"youtube": "https://youtube.com/channel/UC98CzaYuFNAA_gOINFB0e4Q"
350+
"instagram": "https://www.instagram.com/europython/",
351+
"youtube": "https://www.youtube.com/channel/UC98CzaYuFNAA_gOINFB0e4Q"
352352
}
353353
}

src/pages/sponsor/[sponsor]/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function getStaticPaths() {
1414
const isProduction = import.meta.env.MODE === "production";
1515
1616
const sponsors = await getCollection("sponsors", ({ data }) =>
17-
data.tier && ["Gold", "Platinum"].includes(data.tier) && (isProduction ? data.draft !== true : true)
17+
data.tier && ["Diamond", "Platinum"].includes(data.tier) && (isProduction ? data.draft !== true : true)
1818
);
1919
2020
return sponsors.map((sponsor: any) => ({

0 commit comments

Comments
 (0)