Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ export default defineConfig({
],
},
site: "https://ep2025.europython.eu",
redirects: {
"/c-api-summit/": "/programme/c-api-summit/",
"/programme/cfp/": "/programme/cfp/",
"/planning/": "https://forms.gle/riw6CvML8ck94A4V9",
"/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18",
"/rust-summit/": "/programme/rust-summit/",
"/sponsor/": "/sponsorship/sponsor/",
"/voting/": "/programme/voting/",
"/wasm-summit/": "/programme/wasm-summit/",
},
integrations: [
mdx(),
sitemap(),
Expand Down
12 changes: 5 additions & 7 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ const { title, description, image = "/social-card.png" } = Astro.props;
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<meta name="generator" content="Astro" />
<link rel="sitemap" href="/sitemap-index.xml" />

<meta name="referrer" content="no-referrer-when-downgrade" />

<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />

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

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="EuroPython 2025" />
<meta property="og:url" content={Astro.url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
Expand All @@ -43,11 +46,6 @@ const { title, description, image = "/social-card.png" } = Astro.props;
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={new URL(image, Astro.url)} />

<!-- In remembrance -->
<meta http-equiv="X-Clacks-Overhead" content="GNU John Pinner" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Rob Collins" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Oier Etxaniz" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Russel Winder" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep that in :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

<meta name="twitter:site" content="@europython" />

<script defer is:inline data-domain="ep2025.europython.eu" src="https://plausible.io/js/script.js"></script>
5 changes: 3 additions & 2 deletions src/components/footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const gitVersion = import.meta.env.GIT_VERSION;
<div>
<nav class="mb-12">
<h6 class="font-bold text-xl mb-6">Quicklinks</h6>

<ul>
{
links.footer.map((item) => (
<li class="list-none">
Expand All @@ -29,14 +29,15 @@ const gitVersion = import.meta.env.GIT_VERSION;
</li>
))
}
</ul>
</nav>
</div>

<article
class="flex flex-col lg:flex-row self-center gap-8 lg:gap-12 justify-end"
>
<div>
<EPSLogo className="max-w-[200px] h-auto w-full" />
<EPSLogo className="max-w-[100px] lg:max-w-[200px] h-auto w-full" />
</div>
<div>
<address class="not-italic mb-4">
Expand Down
4 changes: 3 additions & 1 deletion src/components/header/header-button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const { href, variant = "standard" } = Astro.props;
"bg-red": variant === "live",
},
]}
href={href}

role="button"
href={href || "#"}
>
<slot />
</a>
6 changes: 5 additions & 1 deletion src/components/nav-items/nav-items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export const NavItems = ({ items, inverted = false }: Props) => {
)}
>
<a
href={item.path}
href={item.path || "#"}
aria-haspopup="true"
role="button"
rel="nofollow"
className={clsx(
"font-bold inline-block w-full text-3xl xl:text-base p-5 text-center",
"xl:text-left xl:p-2 xl:px-5",
Expand Down Expand Up @@ -59,6 +62,7 @@ export const NavItems = ({ items, inverted = false }: Props) => {
>
<a
href={subItem.path || "#"}
role="button"
className={clsx(
"block w-full font-bold text-center",
"xl:text-left mb-[2px] p-2 xl:px-5"
Expand Down
62 changes: 62 additions & 0 deletions src/layouts/HomePageLayout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
import "../styles/global.css";
import Header from "../components/header/header.astro";
import Footer from "../components/footer.astro";
import BaseHead from "../components/BaseHead.astro";

export interface Props {
title: string;
description: string;
}

const { title, description } = Astro.props;
const jsonLd = JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
"publisher": {
"@type": "Organization",
"name": "EuroPython 2025",
"url": "https://ep2025.europython.eu/",
"logo": {
"@type": "ImageObject",
"url": "https://ep2025.europython.eu/_astro/hero.BAlu7uXS_rd8vG.svg",
"width": 1686,
"height": 888
}
},
"url": "https://ep2025.europython.eu/",
"image": {
"@type": "ImageObject",
"url": "https://ep2025.europython.eu/_astro/hero.BAlu7uXS_rd8vG.svg",
"width": 1686,
"height": 888
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://ep2025.europython.eu/"
},
"description": description
});
---

<!doctype html>
<html lang="en">
<head>
<BaseHead title={title} description={description} />
<script type="application/ld+json" is:inline set:html={jsonLd}></script>
</head>

<div class="flex flex-col items-stretch min-h-screen">
<a href="#main-content" class="sr-only"> Skip to main content</a>

<Header />

<main id="main-content" class="layout-wrapper overflow-x-clip">
<slot />
</main>

<div class="mt-auto">
<Footer />
</div>
</div>
</html>
7 changes: 0 additions & 7 deletions src/pages/c-api-summit.astro

This file was deleted.

7 changes: 0 additions & 7 deletions src/pages/cfp.astro

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import HeroWithCTA from "../components/hero-section/hero-with-cta.astro";
import { Fullbleed } from "../components/layout/fullbleed";
import Prose from "../components/prose/prose.astro";
import { Title } from "../components/typography/title";
import Layout from "../layouts/Layout.astro";
import Layout from "../layouts/HomePageLayout.astro";
import DeadlineCard from "../components/deadline-card.astro";
import { getCollection } from "astro:content";
import Accent from "../components/accent/accent.astro";
Expand Down
7 changes: 0 additions & 7 deletions src/pages/planning.astro

This file was deleted.

7 changes: 0 additions & 7 deletions src/pages/reviewers.astro

This file was deleted.

7 changes: 0 additions & 7 deletions src/pages/rust-summit.astro

This file was deleted.

7 changes: 0 additions & 7 deletions src/pages/sponsor.astro

This file was deleted.

6 changes: 0 additions & 6 deletions src/pages/voting.astro

This file was deleted.

7 changes: 0 additions & 7 deletions src/pages/wasm-summit.astro

This file was deleted.