diff --git a/README.md b/README.md index 2a324a75b1..6e6541ae0a 100644 --- a/README.md +++ b/README.md @@ -2930,3 +2930,19 @@ You can check the latest released version of the theme at { subPages: [SubPage] versions: [Version] docs: Link + githubIssue: GitHubIssue salesFAQMenus: [salesFAQMenus] techSupportFAQMenus: [techSupportFAQMenus] subMenuPages: [subMenuPages] @@ -138,6 +139,10 @@ exports.createSchemaCustomization = ({ actions }) => { title: String path: String } + + type GitHubIssue{ + removeLogIssue: Boolean + } type allFile { edges: Node diff --git a/packages/gatsby-theme-aio/src/components/Layout/index.js b/packages/gatsby-theme-aio/src/components/Layout/index.js index f507404c5d..8d71803c4f 100644 --- a/packages/gatsby-theme-aio/src/components/Layout/index.js +++ b/packages/gatsby-theme-aio/src/components/Layout/index.js @@ -260,6 +260,9 @@ export default ({ children, pageContext, location }) => { title path } + githubIssue{ + removeLogIssue + } versions { title path diff --git a/packages/gatsby-theme-aio/src/components/MDXFilter/index.js b/packages/gatsby-theme-aio/src/components/MDXFilter/index.js index fa2c661840..1345a27162 100644 --- a/packages/gatsby-theme-aio/src/components/MDXFilter/index.js +++ b/packages/gatsby-theme-aio/src/components/MDXFilter/index.js @@ -344,7 +344,7 @@ export default ({ children, pageContext, query }) => { margin-top: var(--spectrum-global-dimension-size-200); } `}> - + {siteMetadata && siteMetadata.githubIssue && siteMetadata.githubIssue.removeLogIssue ? null : } )}