feat: extract hardcoded branding values to env vars
This commit is contained in:
+16
-10
@@ -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'}`,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user