mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-07 21:07:47 +00:00
initial work on an about us page
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user