diff --git a/gatsby-config.js b/gatsby-config.js index 64f7ba5..a09077e 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -10,7 +10,6 @@ module.exports = { titleTemplate: '%s · статьи и руководства по веб-разработке', description: 'сборник статей и руководств по тематике веб-разработки и IT для того чтобы помочь вам', url: 'https://devthread.ru', - email: 'support@devthread.ru', menuLinks: [ { name: 'Статьи', @@ -28,7 +27,13 @@ module.exports = { name: 'Ресурсы', link: '/books' } - ] + ], + social: { + email: 'support@devthread.ru', + telegram: 'https://t.me/devthread', + twitter: 'https://twitter.com/devthread', + yadzen: 'https://zen.yandex.ru/' + } }, plugins: [ 'gatsby-plugin-react-helmet', diff --git a/src/components/About/About.js b/src/components/About/About.js index de8861e..0169513 100644 --- a/src/components/About/About.js +++ b/src/components/About/About.js @@ -5,7 +5,7 @@ import './About.scss' import ContactsIcon from '../../images/contacts-icon.svg' -const About = ({ title, pageTitle, email }) => { +const About = ({ title, pageTitle, social }) => { return (
@@ -29,8 +29,8 @@ const About = ({ title, pageTitle, email }) => { контакты
diff --git a/src/components/Contacts/Contacts.js b/src/components/Contacts/Contacts.js index d0e00a7..0a43209 100644 --- a/src/components/Contacts/Contacts.js +++ b/src/components/Contacts/Contacts.js @@ -6,8 +6,7 @@ import './Contacts.scss' import MemoIcon from '../../images/memo-icon.svg' const Contacts = () => { - const { siteMetadata: { email } } = useSiteMetadataQuery() - + const { siteMetadata: { social: { email, telegram } } } = useSiteMetadataQuery() return (
@@ -24,7 +23,7 @@ const Contacts = () => {

контактные данные

diff --git a/src/components/Footer/Footer.js b/src/components/Footer/Footer.js index 2416ccc..0ca6481 100644 --- a/src/components/Footer/Footer.js +++ b/src/components/Footer/Footer.js @@ -1,44 +1,44 @@ import React from 'react'; import { Link } from 'gatsby' import PropTypes from 'prop-types' +import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery' import './Footer.scss' import LogoIcon from '../../images/logo-icon.svg' import GatsbyIcon from '../../images/gatsby-icon.svg' import NetlifyIcon from '../../images/netlify-icon.svg' -const Footer = ({ title }) => { +const Footer = () => { + const { siteMetadata: { title, menuLinks, social: { email, telegram, twitter, yadzen } } } = useSiteMetadataQuery() return (