feat: extract hardcoded branding values to env vars

This commit is contained in:
2026-06-26 00:34:04 +04:00
parent f2d03ebec6
commit 9cbb5e3d23
12 changed files with 133 additions and 96 deletions
+16 -10
View File
@@ -1,14 +1,20 @@
const siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'PAWÒL-NU. Paroles et traductions.'
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://pawol.nu'
const orgFullName = process.env.NEXT_PUBLIC_ORG_FULL_NAME || process.env.NEXT_PUBLIC_ORG_NAME || 'ORGANISATION KA INTERNATIONALE'
const twitterHandle = `@${process.env.NEXT_PUBLIC_TWITTER_USERNAME || 'OrganisationKA'}`
const sipoteTitle = `${siteName} | Soutenir ${orgFullName} !`
export const metadata = {
title: 'PAWÒL-NU | Soutenir ORGANISATION KA INTERNATIONALE !',
title: sipoteTitle,
description: 'Vous pouvez nous soutenir via Liberapay ou PayPal',
openGraph: {
title: 'PAWÒL-NU | Soutenir ORGANISATION KA INTERNATIONALE !',
title: sipoteTitle,
description: 'Vous pouvez nous soutenir via Liberapay ou PayPal.',
url: 'https://pawol.nu/sipote',
siteName: 'PAWÒL-NU | Paroles et traductions.',
url: `${siteUrl}/sipote`,
siteName,
images: [
{
url: 'https://pawol.nu/sipote.png',
url: `${siteUrl}/sipote.png`,
width: 500,
height: 500
}
@@ -17,14 +23,14 @@ export const metadata = {
type: 'website'
},
twitter: {
site: '@OrganisationKA',
site: twitterHandle,
card: 'summary_large_image',
title: 'PAWÒL-NU | Soutenir ORGANISATION KA INTERNATIONALE !',
title: sipoteTitle,
description: 'Vous pouvez nous soutenir via Liberapay ou PayPal.',
creator: '@OrganisationKA',
creator: twitterHandle,
images: {
url: 'https://pawol.nu/sipote.png',
alt: 'Sipòte OKI',
url: `${siteUrl}/sipote.png`,
alt: `Sipòte ${process.env.NEXT_PUBLIC_ORG_NAME || 'OKI'}`,
},
}
}