From cf71f491c166b4542c4308c50761941ff247ce92 Mon Sep 17 00:00:00 2001 From: amirhouieh Date: Tue, 29 Aug 2023 20:41:42 +0200 Subject: [PATCH] add site data to configs --- src/configs/copy.configs.ts | 12 ++++++------ src/configs/data.configs.ts | 11 ++++++++--- src/configs/site.configs.ts | 25 +++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 9 deletions(-) create mode 100644 src/configs/site.configs.ts diff --git a/src/configs/copy.configs.ts b/src/configs/copy.configs.ts index 1a991de..f0288f8 100644 --- a/src/configs/copy.configs.ts +++ b/src/configs/copy.configs.ts @@ -1,11 +1,11 @@ +import { siteConfigs } from '@/configs/site.configs' + export const copyConfigs = { site: { - title: 'Logos Press Engine', - heroTitle: ['Logos', ' → ', 'Press Engine'], - description: - 'Your Guide to Network States and the technology driving Sovereign Communities', - keywords: - 'Logos, Press Engine, Network States, Sovereign Communities, Blockchain, Cryptocurrency, Decentralization, Privacy, Security, Liberty, Censorship, Openness, Inclusivity, Innovation, Interview, Podcast, Law', + title: siteConfigs.title, + heroTitle: siteConfigs.heroTitle, + description: siteConfigs.description, + keywords: siteConfigs.keywords.join(','), }, navbar: { title: 'Press Engine', diff --git a/src/configs/data.configs.ts b/src/configs/data.configs.ts index ba041c8..ef35db4 100644 --- a/src/configs/data.configs.ts +++ b/src/configs/data.configs.ts @@ -1,4 +1,5 @@ import { LPEFooterGroup } from '@/types/ui.types' +import { siteConfigs } from '@/configs/site.configs' export const ArticleBlocksOrders = { title: 0, @@ -63,13 +64,17 @@ export const FooterLinksItems: { href: 'https://discord.gg/logos-state', key: 'discord', }, - { label: 'X', href: 'https://twitter.com/Logos_state', key: 'x' }, + { label: 'X', href: `https://x.com/${siteConfigs.xHandle}`, key: 'x' }, { label: 'Github', - href: 'https://github.com/acid-info', + href: `https://github.com/${siteConfigs.githubHandle}`, key: 'github', }, - { label: 'Youtube', href: 'https://www.youtube.com', key: 'youtube' }, + { + label: 'Youtube', + href: `https://www.youtube.com/${siteConfigs.youtubeHandle}`, + key: 'youtube', + }, ], }, { diff --git a/src/configs/site.configs.ts b/src/configs/site.configs.ts new file mode 100644 index 0000000..839f1da --- /dev/null +++ b/src/configs/site.configs.ts @@ -0,0 +1,25 @@ +export const siteConfigs = { + title: 'Logos Press Engine', + heroTitle: ['Logos', ' → ', 'Press Engine'], + description: + 'Your Guide to Network States and the technology driving Sovereign Communities', + keywords: [ + 'book club', + 'censorship resistance', + 'citizens', + 'finance', + 'network state', + 'op ed', + 'panarchy', + 'pr', + 'privacy', + 'security', + 'show', + 'technology', + 'update', + 'whistleblower', + ], + xHandle: 'logos_state', + youtubeHandle: ',', + githubHandle: 'logos-co', +}