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 }
< / T h e m e R e g i s t r y >
< section >
< script
type = 'application/ld+json'
dangerouslySetInnerHTML = { { _ _html : JSON . stringify ( jsonLd ) } }
/ >
< / s e c t i o n >
< / >
)
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 } < / P l a u s i b l e P r o v i d e r >
: inner }
2023-07-22 13:02:11 +04:00
< / b o d y >
< / h t m l >
)
}