Skip to content
Snippets Groups Projects
Commit 4872c7e4 authored by Alexander Schoch's avatar Alexander Schoch
Browse files

move metadata export

parent 8a8b2a58
No related merge requests found
......@@ -20,6 +20,22 @@ const ss3 = Source_Sans_3({
display: "swap",
});
export async function generateMetadata(
{ params, searchParams },
parent
) {
// read route params
const locale = params.locale;
const description = locale === "de" ?
"Wir sind Studierende der ETH, die dir an unseren Events und in unserem Büro kostenlos mit Linux helfen, weil wir Open Source und Freie Software lieben und Dir den Einstieg erleichtern wollen. Jedes Semester organisieren wir Events, die Dich bei der Nutzung und Produktion von freier und offener Wissenschaft, Hardware, Software und Dateiformaten unterstützen." :
"We are students at ETH who help you for free with Linux at our events and in our office, because we love Open Source and Free Software and want to help you to get started. Each semester, we organize events to help you use and produce Free and Open Science, Hardware, Software and File Formats.";
return {
title: "TheAlternative",
description,
}
}
export function generateStaticParams() {
return getStaticParams();
}
......
......@@ -7,25 +7,6 @@ import Events from "/components/events";
import About from "/components/about";
import Philosophy from "/components/philosophy";
export async function generateMetadata(
{ params, searchParams },
parent
) {
// read route params
const locale = params.locale;
const description = locale === "de" ?
"Wir sind Studierende der ETH, die dir an unseren Events und in unserem Büro kostenlos mit Linux helfen, weil wir Open Source und Freie Software lieben und Dir den Einstieg erleichtern wollen. Jedes Semester organisieren wir Events, die Dich bei der Nutzung und Produktion von freier und offener Wissenschaft, Hardware, Software und Dateiformaten unterstützen." :
"We are students at ETH who help you for free with Linux at our events and in our office, because we love Open Source and Free Software and want to help you to get started. Each semester, we organize events to help you use and produce Free and Open Science, Hardware, Software and File Formats.";
return {
title: "TheAlternative",
description,
openGraph: {
images: ['/some-specific-page-image.jpg', ...previousImages],
},
}
}
export default function Page({ params: { locale } }) {
return (
<div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment