2026-06-11 18:52:37 +04:00
import PlausibleProvider from 'next-plausible'
2026-04-21 19:32:05 +04:00
import TopLoader from '../components/top-loader'
2023-07-22 13:02:11 +04:00
import Navigasyon from '../components/navigasyon'
import ThemeRegistry from './theme-registy'
2026-06-26 00:34:04 +04:00
const siteName = process . env . NEXT_PUBLIC_SITE_NAME || 'PAWÒL-NU. Paroles et traductions.'
const siteDescription = process . env . NEXT_PUBLIC_SITE_DESCRIPTION || 'PAWÒL-NU a pour but de promouvoir le Medukam (ou Wanni Wannan) et les productions afro-diasporiques.'
const siteUrl = process . env . NEXT_PUBLIC_SITE_URL || 'https://pawol.nu'
const orgName = process . env . NEXT_PUBLIC_ORG_NAME || 'OKI'
const orgEmail = process . env . NEXT_PUBLIC_ORG_EMAIL || 'kontak@o-k-i.net'
const orgLocation = process . env . NEXT_PUBLIC_ORG_LOCATION || 'Guadeloupe'
const twitterHandle = `@ ${ process . env . NEXT_PUBLIC_TWITTER_USERNAME || 'OrganisationKA' } `
const plausibleUrl = process . env . NEXT_PUBLIC_PLAUSIBLE_URL || null
2023-07-22 13:02:11 +04:00
export const metadata = {
2026-06-26 00:34:04 +04:00
metadataBase : new URL ( siteUrl ),
manifest : '/manifest.webmanifest' ,
title : siteName ,
description : siteDescription ,
author : orgName ,
2023-07-22 13:02:11 +04:00
category : 'music' ,
2026-06-26 00:34:04 +04:00
creator : orgName ,
publisher : orgName ,
applicationName : siteName ,
2023-07-22 13:02:11 +04:00
openGraph : {
2026-06-26 00:34:04 +04:00
title : siteName ,
description : siteDescription ,
url : siteUrl ,
siteName ,
2023-07-22 13:02:11 +04:00
images : [
{
2026-06-26 00:34:04 +04:00
url : ` ${ siteUrl } /logo-512x512.png` ,
2023-07-22 13:02:11 +04:00
width : 512 ,
height : 512
}
],
locale : 'fr_FR' ,
type : 'website'
},
twitter : {
2026-06-26 00:34:04 +04:00
site : twitterHandle ,
2023-07-22 13:02:11 +04:00
card : 'summary_large_image' ,
2026-06-26 00:34:04 +04:00
title : siteName ,
description : siteDescription ,
creator : twitterHandle ,
2023-07-22 13:02:11 +04:00
images : {
2026-06-26 00:34:04 +04:00
url : ` ${ siteUrl } /logo-512x512.png` ,
alt : ` ${ siteName } Logo` ,
2023-07-22 13:02:11 +04:00
},
}
}
const jsonLd = {
'@context' : 'https://schema.org' ,
'@type' : 'Organization' ,
2026-06-26 00:34:04 +04:00
url : siteUrl ,
email : orgEmail ,
keywords : [ orgName , siteName , 'Paroles' , 'Pawol' ],
legalName : siteName ,
location : orgLocation ,
2023-07-22 13:02:11 +04:00
}
2026-06-11 18:33:42 +04:00
export default async function RootLayout ({ children }) {
2026-06-26 00:34:04 +04:00
const inner = (
<>
< TopLoader color = '#ffeb3b' />
< ThemeRegistry >
< Navigasyon />
{ children }
< /ThemeRegistry>
< section >
< script
type = 'application/ld+json'
dangerouslySetInnerHTML = {{ __html : JSON . stringify ( jsonLd )}}
/>
< /section>
< />
)
2023-07-22 13:02:11 +04:00
return (
2026-04-16 13:56:39 +04:00
< html lang = 'fr' suppressHydrationWarning >
2023-07-22 13:02:11 +04:00
< body >
2026-06-26 00:34:04 +04:00
{ plausibleUrl
? < PlausibleProvider src = { plausibleUrl } > { inner } < /PlausibleProvider>
: inner }
2023-07-22 13:02:11 +04:00
< /body>
< /html>
)
}