SEO optimizations
This commit is contained in:
+53
-8
@@ -1,21 +1,66 @@
|
||||
// app/page.tsx
|
||||
import { Metadata } from 'next';
|
||||
import BeachPromo from './components/BeachPromo';
|
||||
import Footer from './components/Footer';
|
||||
import Header from './components/Header';
|
||||
import HomeClientContent from './components/HomeClientContent';
|
||||
import { getConfig } from './lib/config';
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const config = await getConfig();
|
||||
|
||||
const beachSuffix = config.showBeachPromo ? ' Just nu: Anmälan öppen till Höganäs Beach Open!' : '';
|
||||
|
||||
return {
|
||||
title: 'LVS – Volleyboll för alla i Höganäs',
|
||||
description: `Välkommen till Lerbergets Volleybollsällskap. Vi erbjuder kidsvolley och inomhusvolleyboll för alla åldrar i Höganäs.${beachSuffix}`,
|
||||
openGraph: {
|
||||
title: 'LVS | Lerbergets Volleybollsällskap',
|
||||
description: 'Häng med och spela volleyboll med oss i Höganäs!',
|
||||
url: 'https://lerbergetsvolleyboll.se',
|
||||
siteName: 'Lerbergets Volleybollsällskap',
|
||||
locale: 'sv_SE',
|
||||
type: 'website',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default async function Home() {
|
||||
const config = await getConfig();
|
||||
|
||||
const jsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'SportsOrganization',
|
||||
'name': 'Lerbergets Volleybollsällskap',
|
||||
'alternateName': 'LVS',
|
||||
'url': 'https://lerbergetsvolleyboll.se',
|
||||
'logo': 'https://lerbergetsvolleyboll.se/images/favicon.svg',
|
||||
'address': {
|
||||
'@type': 'PostalAddress',
|
||||
'streetAddress': 'Friluftsvägen 14',
|
||||
'addressLocality': 'Höganäs',
|
||||
'postalCode': '263 54',
|
||||
'addressCountry': 'SE',
|
||||
},
|
||||
'sameAs': [
|
||||
'https://www.instagram.com/lerbergets_volleyboll/',
|
||||
'https://www.facebook.com/lerbergetsvolleyboll',
|
||||
'https://www.laget.se/LVS'
|
||||
]
|
||||
};
|
||||
|
||||
return (
|
||||
<main>
|
||||
<Header />
|
||||
{config.showBeachPromo && (
|
||||
<BeachPromo />
|
||||
)}
|
||||
<HomeClientContent />
|
||||
<Footer />
|
||||
</main>
|
||||
<>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||
/>
|
||||
<main>
|
||||
<Header />
|
||||
{config.showBeachPromo && <BeachPromo />}
|
||||
<HomeClientContent />
|
||||
<Footer />
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user