initial work on an about us page

This commit is contained in:
Corbin Crutchley
2019-08-09 18:00:36 -07:00
parent 3c8faa00b2
commit 1bba616937
6 changed files with 84 additions and 5 deletions

View File

@@ -10,7 +10,11 @@ exports.createPages = ({ graphql, actions }) => {
return graphql(
`
{
allMarkdownRemark(sort: {fields: [frontmatter___published], order: DESC}, limit: 1000) {
allMarkdownRemark(
sort: {fields: [frontmatter___published], order: DESC},
filter: {fileAbsolutePath: {regex: "/content/blog/"}},
limit: 1000
) {
edges {
node {
fields {
@@ -87,7 +91,6 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions
if (node.internal.type === `MarkdownRemark`) {
console.log(node.frontmatter.description)
const value = createFilePath({ node, getNode })
createNodeField({
name: `slug`,