Skip to content

Commit cd08521

Browse files
committed
Update refirects and meta tags.
1 parent bfab659 commit cd08521

File tree

12 files changed

+80
-63
lines changed

12 files changed

+80
-63
lines changed

astro.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ export default defineConfig({
3535
],
3636
},
3737
site: "https://ep2025.europython.eu",
38+
redirects: {
39+
"/c-api-summit/": "/programme/c-api-summit/",
40+
"/programme/cfp/": "/programme/cfp/",
41+
"/planning/": "https://forms.gle/riw6CvML8ck94A4V9",
42+
"/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18",
43+
"/rust-summit/": "/programme/rust-summit/",
44+
"/sponsor/": "/sponsorship/sponsor/",
45+
"/voting/": "/programme/voting/",
46+
"/programme/wasm-summit/": "/programme/wasm-summit/",
47+
},
3848
integrations: [
3949
mdx(),
4050
sitemap(),

src/components/BaseHead.astro

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ const { title, description, image = "/social-card.png" } = Astro.props;
1919
<meta charset="utf-8" />
2020
<meta name="viewport" content="width=device-width,initial-scale=1" />
2121
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
22-
<meta name="generator" content={Astro.generator} />
22+
<meta name="generator" content="Astro" />
2323
<link rel="sitemap" href="/sitemap-index.xml" />
2424

25+
<meta name="referrer" content="no-referrer-when-downgrade" />
26+
2527
<!-- Canonical URL -->
2628
<link rel="canonical" href={canonicalURL} />
2729

@@ -32,6 +34,7 @@ const { title, description, image = "/social-card.png" } = Astro.props;
3234

3335
<!-- Open Graph / Facebook -->
3436
<meta property="og:type" content="website" />
37+
<meta property="og:site_name" content="EuroPython 2025" />
3538
<meta property="og:url" content={Astro.url} />
3639
<meta property="og:title" content={title} />
3740
<meta property="og:description" content={description} />
@@ -43,11 +46,6 @@ const { title, description, image = "/social-card.png" } = Astro.props;
4346
<meta property="twitter:title" content={title} />
4447
<meta property="twitter:description" content={description} />
4548
<meta property="twitter:image" content={new URL(image, Astro.url)} />
46-
47-
<!-- In remembrance -->
48-
<meta http-equiv="X-Clacks-Overhead" content="GNU John Pinner" />
49-
<meta http-equiv="X-Clacks-Overhead" content="GNU Rob Collins" />
50-
<meta http-equiv="X-Clacks-Overhead" content="GNU Oier Etxaniz" />
51-
<meta http-equiv="X-Clacks-Overhead" content="GNU Russel Winder" />
49+
<meta name="twitter:site" content="@europython" />
5250

5351
<script defer is:inline data-domain="ep2025.europython.eu" src="https://plausible.io/js/script.js"></script>

src/layouts/HomePageLayout.astro

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
import "../styles/global.css";
3+
import Header from "../components/header/header.astro";
4+
import Footer from "../components/footer.astro";
5+
import BaseHead from "../components/BaseHead.astro";
6+
7+
export interface Props {
8+
title: string;
9+
description: string;
10+
}
11+
12+
const { title, description } = Astro.props;
13+
---
14+
15+
<!doctype html>
16+
<html lang="en">
17+
<head>
18+
<BaseHead title={title} description={description} />
19+
20+
<script type="application/ld+json" is:inline>
21+
{
22+
"@context": "https://schema.org",
23+
"@type": "WebSite",
24+
"publisher": {
25+
"@type": "Organization",
26+
"name": "EuroPython 2025",
27+
"url": "https://ep2025.europython.eu/",
28+
"logo": {
29+
"@type": "ImageObject",
30+
"url": "https://ep2025.europython.eu/_astro/hero.BAlu7uXS_rd8vG.svg",
31+
"width": 1686,
32+
"height": 888
33+
}
34+
},
35+
"url": "https://ep2025.europython.eu/",
36+
"image": {
37+
"@type": "ImageObject",
38+
"url": "https://ep2025.europython.eu/_astro/hero.BAlu7uXS_rd8vG.svg",
39+
"width": 1686,
40+
"height": 888
41+
},
42+
"mainEntityOfPage": {
43+
"@type": "WebPage",
44+
"@id": "https://ep2025.europython.eu/"
45+
},
46+
"description": {description}
47+
}
48+
</script>
49+
</head>
50+
51+
<div class="flex flex-col items-stretch min-h-screen">
52+
<a href="#main-content" class="sr-only"> Skip to main content</a>
53+
54+
<Header />
55+
56+
<main id="main-content" class="layout-wrapper overflow-x-clip">
57+
<slot />
58+
</main>
59+
60+
<div class="mt-auto">
61+
<Footer />
62+
</div>
63+
</div>
64+
</html>

src/pages/c-api-summit.astro

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/cfp.astro

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import HeroWithCTA from "../components/hero-section/hero-with-cta.astro";
55
import { Fullbleed } from "../components/layout/fullbleed";
66
import Prose from "../components/prose/prose.astro";
77
import { Title } from "../components/typography/title";
8-
import Layout from "../layouts/Layout.astro";
8+
import Layout from "../layouts/HomePageLayout.astro";
99
import DeadlineCard from "../components/deadline-card.astro";
1010
import { getCollection } from "astro:content";
1111
import Accent from "../components/accent/accent.astro";

src/pages/planning.astro

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/reviewers.astro

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/rust-summit.astro

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pages/sponsor.astro

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)