Initial fix of develop mode after integration merge

This commit is contained in:
Corbin Crutchley
2019-09-11 11:24:53 -07:00
parent a0a26bd6bf
commit fc64391ccf
4 changed files with 10 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
title: "Introduction to Android: Contexts, Intents, and the Activity lifecycle", title: "Introduction to Android: Contexts, Intents, and the Activity lifecycle",
description: 'A basic overview of the main components of an Android app and how they interact with each other and the Android system', description: 'A basic overview of the main components of an Android app and how they interact with each other and the Android system',
published: '2019-08-22T05:12:03.284Z', published: '2019-08-22T05:12:03.284Z',
author: 'fennifith', authors: ['fennifith'],
tags: ['android'], tags: ['android'],
attached: [], attached: [],
license: 'publicdomain-zero-1' license: 'publicdomain-zero-1'

View File

@@ -3,7 +3,7 @@
title: "Joining Freenode IRC: A Guide", title: "Joining Freenode IRC: A Guide",
description: 'Basic (but detailed) instructions for setting up a Freenode IRC account through various clients', description: 'Basic (but detailed) instructions for setting up a Freenode IRC account through various clients',
published: '2019-08-22T05:12:03.284Z', published: '2019-08-22T05:12:03.284Z',
author: 'fennifith', authors: ['fennifith'],
tags: ['irc'], tags: ['irc'],
attached: [], attached: [],
license: 'publicdomain-zero-1' license: 'publicdomain-zero-1'

View File

@@ -3,7 +3,7 @@
title: "Continuous Integration with Travis CI for Android", title: "Continuous Integration with Travis CI for Android",
description: 'An in-depth tutorial explaining how to set up Travis CI to deploy signed builds to Google Play. Among other things', description: 'An in-depth tutorial explaining how to set up Travis CI to deploy signed builds to Google Play. Among other things',
published: '2019-08-22T05:12:03.284Z', published: '2019-08-22T05:12:03.284Z',
author: 'fennifith', authors: ['fennifith'],
tags: ['android', 'ci'], tags: ['android', 'ci'],
attached: [], attached: [],
license: 'publicdomain-zero-1' license: 'publicdomain-zero-1'

View File

@@ -35,7 +35,12 @@ exports.sourceNodes = ({ getNodesByType, actions: { createNodeField } }) => {
const unicornNodes = getNodesByType(`UnicornsJson`) const unicornNodes = getNodesByType(`UnicornsJson`)
unicornNodes.forEach(unicornNode => { unicornNodes.forEach(unicornNode => {
const isAuthor = postNodes.some(post => post.frontmatter.authors.includes(unicornNode.id)) //changed const isAuthor = postNodes
// Ensure it's actually a post
.filter(post => !!post.frontmatter.authors)
.some(post => {
return post.frontmatter.authors.includes(unicornNode.id)
})
createNodeField({ createNodeField({
name: `isAuthor`, name: `isAuthor`,
@@ -46,7 +51,7 @@ exports.sourceNodes = ({ getNodesByType, actions: { createNodeField } }) => {
} }
exports.createPages = ({ graphql, actions }) => { exports.createPages = ({ graphql, actions }) => {
const { createPage, createNodeField } = actions const { createPage } = actions
const blogPost = path.resolve(`./src/templates/blog-post.js`) const blogPost = path.resolve(`./src/templates/blog-post.js`)
const blogProfile = path.resolve(`./src/templates/blog-profile.js`) const blogProfile = path.resolve(`./src/templates/blog-profile.js`)