Skip to content

Commit e502e15

Browse files
nikoshellpre-commit-ci[bot]clytaemnestra
authored
Update redirects and improve SEO (#1066)
<!-- readthedocs-preview ep-website start --> 🖼️ Preview available 🖼️ : https://ep-website--1066.org.readthedocs.build/ <!-- readthedocs-preview ep-website end --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Mia Bajić <38294198+clytaemnestra@users.noreply.github.com>
1 parent bfab659 commit e502e15

15 files changed

+94
-67
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+
"/wasm-summit/": "/programme/wasm-summit/",
47+
},
3848
integrations: [
3949
mdx(),
4050
sitemap(),

src/components/BaseHead.astro

Lines changed: 10 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,19 +34,20 @@ 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} />
3841
<meta property="og:image" content={new URL(image, Astro.url)} />
3942

4043
<!-- Twitter -->
41-
<meta property="twitter:card" content="summary_large_image" />
42-
<meta property="twitter:url" content={Astro.url} />
43-
<meta property="twitter:title" content={title} />
44-
<meta property="twitter:description" content={description} />
45-
<meta property="twitter:image" content={new URL(image, Astro.url)} />
44+
<meta name="twitter:card" content="summary_large_image" />
45+
<meta name="twitter:url" content={Astro.url} />
46+
<meta name="twitter:title" content={title} />
47+
<meta name="twitter:description" content={description} />
48+
<meta name="twitter:image" content={new URL(image, Astro.url)} />
49+
<meta name="twitter:site" content="@europython" />
4650

47-
<!-- In remembrance -->
4851
<meta http-equiv="X-Clacks-Overhead" content="GNU John Pinner" />
4952
<meta http-equiv="X-Clacks-Overhead" content="GNU Rob Collins" />
5053
<meta http-equiv="X-Clacks-Overhead" content="GNU Oier Etxaniz" />

src/components/footer.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const gitVersion = import.meta.env.GIT_VERSION;
1515
<div>
1616
<nav class="mb-12">
1717
<h6 class="font-bold text-xl mb-6">Quicklinks</h6>
18-
18+
<ul>
1919
{
2020
links.footer.map((item) => (
2121
<li class="list-none">
@@ -29,14 +29,15 @@ const gitVersion = import.meta.env.GIT_VERSION;
2929
</li>
3030
))
3131
}
32+
</ul>
3233
</nav>
3334
</div>
3435

3536
<article
3637
class="flex flex-col lg:flex-row self-center gap-8 lg:gap-12 justify-end"
3738
>
3839
<div>
39-
<EPSLogo className="max-w-[200px] h-auto w-full" />
40+
<EPSLogo className="max-w-[100px] lg:max-w-[200px] h-auto w-full" />
4041
</div>
4142
<div>
4243
<address class="not-italic mb-4">

src/components/header/header-button.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const { href, variant = "standard" } = Astro.props;
1818
"bg-red": variant === "live",
1919
},
2020
]}
21-
href={href}
21+
22+
role="button"
23+
href={href || "#"}
2224
>
2325
<slot />
2426
</a>

src/components/nav-items/nav-items.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ export const NavItems = ({ items, inverted = false }: Props) => {
2727
)}
2828
>
2929
<a
30-
href={item.path}
30+
href={item.path || "#"}
31+
aria-haspopup="true"
32+
role="button"
33+
rel="nofollow"
3134
className={clsx(
3235
"font-bold inline-block w-full text-3xl xl:text-base p-5 text-center",
3336
"xl:text-left xl:p-2 xl:px-5",
@@ -59,6 +62,7 @@ export const NavItems = ({ items, inverted = false }: Props) => {
5962
>
6063
<a
6164
href={subItem.path || "#"}
65+
role="button"
6266
className={clsx(
6367
"block w-full font-bold text-center",
6468
"xl:text-left mb-[2px] p-2 xl:px-5"

src/layouts/HomePageLayout.astro

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
const jsonLd = JSON.stringify({
14+
"@context": "https://schema.org",
15+
"@type": "WebSite",
16+
"publisher": {
17+
"@type": "Organization",
18+
"name": "EuroPython 2025",
19+
"url": "https://ep2025.europython.eu/",
20+
"logo": {
21+
"@type": "ImageObject",
22+
"url": "https://ep2025.europython.eu/_astro/hero.BAlu7uXS_rd8vG.svg",
23+
"width": 1686,
24+
"height": 888
25+
}
26+
},
27+
"url": "https://ep2025.europython.eu/",
28+
"image": {
29+
"@type": "ImageObject",
30+
"url": "https://ep2025.europython.eu/_astro/hero.BAlu7uXS_rd8vG.svg",
31+
"width": 1686,
32+
"height": 888
33+
},
34+
"mainEntityOfPage": {
35+
"@type": "WebPage",
36+
"@id": "https://ep2025.europython.eu/"
37+
},
38+
"description": description
39+
});
40+
---
41+
42+
<!doctype html>
43+
<html lang="en">
44+
<head>
45+
<BaseHead title={title} description={description} />
46+
<script type="application/ld+json" is:inline set:html={jsonLd}></script>
47+
</head>
48+
49+
<div class="flex flex-col items-stretch min-h-screen">
50+
<a href="#main-content" class="sr-only"> Skip to main content</a>
51+
52+
<Header />
53+
54+
<main id="main-content" class="layout-wrapper overflow-x-clip">
55+
<slot />
56+
</main>
57+
58+
<div class="mt-auto">
59+
<Footer />
60+
</div>
61+
</div>
62+
</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.

src/pages/voting.astro

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

src/pages/wasm-summit.astro

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

0 commit comments

Comments
 (0)