mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
pages cleanup, remove /test from sitemap
This commit is contained in:
parent
01b692fab0
commit
50f1381307
@ -128,7 +128,12 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'gatsby-plugin-catch-links',
|
'gatsby-plugin-catch-links',
|
||||||
'gatsby-plugin-react-helmet',
|
'gatsby-plugin-react-helmet',
|
||||||
'gatsby-plugin-sitemap',
|
{
|
||||||
|
resolve: 'gatsby-plugin-sitemap',
|
||||||
|
options: {
|
||||||
|
exclude: ['/test/']
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-manifest',
|
resolve: 'gatsby-plugin-manifest',
|
||||||
options: {
|
options: {
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
import React from 'react'
|
|
||||||
import PropTypes from 'prop-types'
|
|
||||||
import { Link, graphql } from 'gatsby'
|
|
||||||
import Layout from '../components/Layout'
|
|
||||||
import HeaderSection from '../components/HeaderSection'
|
|
||||||
import Content from '../components/Content'
|
|
||||||
|
|
||||||
const SetupIndexPage = ({ data, location }) => {
|
|
||||||
const { edges } = data.allMarkdownRemark
|
|
||||||
|
|
||||||
const SetupList = edges.map(({ node }) => {
|
|
||||||
const { title } = node.frontmatter
|
|
||||||
const { slug } = node.fields
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li key={node.id}>
|
|
||||||
<Link to={slug}>{title}</Link>
|
|
||||||
</li>
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Layout location={location}>
|
|
||||||
<HeaderSection title={['Setup Guides']} />
|
|
||||||
<Content>
|
|
||||||
<ul>{SetupList}</ul>
|
|
||||||
</Content>
|
|
||||||
</Layout>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default SetupIndexPage
|
|
||||||
|
|
||||||
SetupIndexPage.propTypes = {
|
|
||||||
data: PropTypes.object.isRequired,
|
|
||||||
location: PropTypes.object.isRequired
|
|
||||||
}
|
|
||||||
|
|
||||||
export const indexQuery = graphql`
|
|
||||||
query {
|
|
||||||
allMarkdownRemark(filter: { fields: { section: { eq: "setup" } } }) {
|
|
||||||
edges {
|
|
||||||
node {
|
|
||||||
id
|
|
||||||
html
|
|
||||||
excerpt(pruneLength: 250)
|
|
||||||
frontmatter {
|
|
||||||
title
|
|
||||||
}
|
|
||||||
fields {
|
|
||||||
slug
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`
|
|
@ -1,59 +0,0 @@
|
|||||||
import React from 'react'
|
|
||||||
import PropTypes from 'prop-types'
|
|
||||||
import { Link, graphql } from 'gatsby'
|
|
||||||
import Layout from '../components/Layout'
|
|
||||||
import HeaderSection from '../components/HeaderSection'
|
|
||||||
import Content from '../components/Content'
|
|
||||||
|
|
||||||
const TutorialsIndexPage = ({ data, location }) => {
|
|
||||||
const { edges } = data.allMarkdownRemark
|
|
||||||
|
|
||||||
const TutorialsList = edges.map(({ node }) => {
|
|
||||||
const { title } = node.frontmatter
|
|
||||||
const { slug } = node.fields
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li key={node.id}>
|
|
||||||
<Link to={slug}>{title}</Link>
|
|
||||||
</li>
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Layout location={location}>
|
|
||||||
<HeaderSection title={['Tutorials']} />
|
|
||||||
<Content>
|
|
||||||
<ul>{TutorialsList}</ul>
|
|
||||||
</Content>
|
|
||||||
</Layout>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default TutorialsIndexPage
|
|
||||||
|
|
||||||
TutorialsIndexPage.propTypes = {
|
|
||||||
data: PropTypes.object.isRequired,
|
|
||||||
location: PropTypes.object.isRequired
|
|
||||||
}
|
|
||||||
|
|
||||||
export const indexQuery = graphql`
|
|
||||||
query {
|
|
||||||
allMarkdownRemark(
|
|
||||||
filter: { fields: { section: { eq: "tutorials" } } }
|
|
||||||
) {
|
|
||||||
edges {
|
|
||||||
node {
|
|
||||||
id
|
|
||||||
html
|
|
||||||
excerpt(pruneLength: 250)
|
|
||||||
frontmatter {
|
|
||||||
title
|
|
||||||
}
|
|
||||||
fields {
|
|
||||||
slug
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`
|
|
Loading…
x
Reference in New Issue
Block a user