Skip to content

Commit

Permalink
Hexlet#649 add data config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kodsurfer committed Aug 19, 2024
1 parent c9a5579 commit 0946ffb
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions data/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
interface SocialLinks {
links: string[];
}

interface DisqusConfig {
ru: string;
en: string;
}

interface AmpAnalytics {
metrikaCounterId: string;
googleTrackingId: string;
}

interface AmpConfig {
analytics: AmpAnalytics;
}

interface Config {
siteURL: string;
title: string;
email: string;
timezone: string;
repositoryUrl: string;
siteUrl: string;
tagline: string;
description: string;
social: SocialLinks;
logo: string;
favicon: string;
author: string;
disqus: DisqusConfig;
amp: AmpConfig;
}

const config: Config = {
siteURL: 'https://guides.hexlet.io',
title: 'Hexlet Guides',
email: '[email protected]',
timezone: 'UTC',
repositoryUrl: 'https://github.com/Hexlet/hexletguides.github.io',
siteUrl: 'https://guides.hexlet.io',
tagline: 'Гайды',
description: 'Полезные статьи и гайды для разработчиков',
social: {
links: ['https://www.instagram.com/hexlethq/', 'https://www.facebook.com/Hexlet/', 'https://twitter.com/HexletHQ'],
},
logo: '/images/hexlet_logo.png',
favicon: '/assets/images/favicons/favicon-128.png',
author: 'Kirill Mokevnin',
disqus: {
ru: 'hexlet-guides',
en: 'hexlet-guides-en',
},
amp: {
analytics: {
metrikaCounterId: '65474386',
googleTrackingId: 'UA-1360700-62',
},
},
};

export default config;

0 comments on commit 0946ffb

Please sign in to comment.