From 68eb44879b04034bd62042920ea8c4ac8fb731b4 Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Wed, 1 Jul 2020 21:19:43 +0300 Subject: [PATCH] fixed header --- gatsby-config.js | 2 ++ package-lock.json | 8 ++++++++ package.json | 5 +++-- src/components/About/About.js | 4 ++-- src/components/Description/Description.js | 2 +- src/components/Header/Header.js | 6 ++++-- src/hooks/useSiteMetadata.js | 1 + src/pages/about.js | 4 ++-- 8 files changed, 23 insertions(+), 9 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 591f3fa..f6042bb 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -10,6 +10,7 @@ module.exports = { titleTemplate: '%s · статьи и руководства по веб-разработке', description: 'сборник статей и руководств по тематике веб-разработки и IT для того чтобы помочь вам', url: 'https://devthread.ru', + email: 'support@devthread.ru', menuLinks: [ { name: 'Статьи', @@ -30,6 +31,7 @@ module.exports = { ] }, plugins: [ + 'gatsby-plugin-react-helmet', 'gatsby-plugin-sass', { resolve: "gatsby-plugin-react-svg", diff --git a/package-lock.json b/package-lock.json index 12dd9db..aa62f07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6661,6 +6661,14 @@ "micromatch": "^3.1.10" } }, + "gatsby-plugin-react-helmet": { + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/gatsby-plugin-react-helmet/-/gatsby-plugin-react-helmet-3.3.8.tgz", + "integrity": "sha512-K9X/LPUOw1f36jjMdNeIPPXTCTZGvF8Qfq9FIe0PuzHFfnESjxkchw6Rd9gB0/wQxSlvunIuEz0z13Vki2aRKw==", + "requires": { + "@babel/runtime": "^7.10.3" + } + }, "gatsby-plugin-react-svg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-react-svg/-/gatsby-plugin-react-svg-3.0.0.tgz", diff --git a/package.json b/package.json index 638b09b..70cfe28 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "@reach/router": "^1.3.4", "gatsby": "^2.23.12", + "gatsby-plugin-react-helmet": "^3.3.8", "gatsby-plugin-react-svg": "^3.0.0", "gatsby-plugin-sass": "^2.3.7", "gatsby-source-filesystem": "^2.3.14", @@ -31,9 +32,9 @@ }, "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby-starter-hello-world" + "url": "https://github.com/sergeyyarkov/devthread.ru" }, "bugs": { - "url": "https://github.com/gatsbyjs/gatsby/issues" + "url": "https://github.com/sergeyyarkov/devthread.ru/issues" } } diff --git a/src/components/About/About.js b/src/components/About/About.js index 4d20776..a2deb8e 100644 --- a/src/components/About/About.js +++ b/src/components/About/About.js @@ -4,7 +4,7 @@ import './About.scss' import ContactsIcon from '../../images/contacts-icon.svg' -const About = ({ title, pageTitle }) => { +const About = ({ title, pageTitle, email }) => { return (
@@ -28,7 +28,7 @@ const About = ({ title, pageTitle }) => { контакты
diff --git a/src/components/Description/Description.js b/src/components/Description/Description.js index 2992cb7..06c8a0f 100644 --- a/src/components/Description/Description.js +++ b/src/components/Description/Description.js @@ -14,7 +14,7 @@ export default () => {

- здесь публикуются самые различные статьи и руководства на тему веб-разработки для того чтобы помочь вам + сборник статей и руководств по тематике веб-разработки и IT для того чтобы помочь вам

- page.link === '/about')[0].name} /> + page.link === '/about')[0].name} email={email} />