Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/templates/docs.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { RouterProps } from '@reach/router'
import { RouterProps, navigate } from '@reach/router'
import { graphql } from 'gatsby'
import MDXRenderer from 'gatsby-plugin-mdx/mdx-renderer'
import * as React from 'react'
import { ArticleQueryData } from '../interfaces/Article.interface'
import Layout from '../components/layout'
import TopSection from '../components/topSection'
import PageBottom from '../components/pageBottom'
import SEO from '../components/seo'
import { graphql, useStaticQuery } from 'gatsby'
import MDXRenderer from 'gatsby-plugin-mdx/mdx-renderer'
import { navigate } from '@reach/router'
import TopSection from '../components/topSection'
import { ArticleQueryData } from '../interfaces/Article.interface'
import { CreatePageContext } from '../interfaces/Layout.interface'

type ArticleLayoutProps = ArticleQueryData & RouterProps & CreatePageContext
Expand Down Expand Up @@ -56,7 +55,7 @@ const ArticleLayout = ({ data, ...props }: ArticleLayoutProps) => {
export default ArticleLayout

export const Head = ({ pageContext: { seoTitle, seoDescription } }: ArticleLayoutProps) => {
return <SEO title={seoTitle} description={seoDescription} homepage />
return <SEO title={seoTitle} homepage={false} description={seoDescription} />
}

export const query = graphql`
Expand Down