mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-09 12:57:45 +00:00
Initial fix of develop mode after integration merge
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
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',
|
||||
published: '2019-08-22T05:12:03.284Z',
|
||||
author: 'fennifith',
|
||||
authors: ['fennifith'],
|
||||
tags: ['android'],
|
||||
attached: [],
|
||||
license: 'publicdomain-zero-1'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
title: "Joining Freenode IRC: A Guide",
|
||||
description: 'Basic (but detailed) instructions for setting up a Freenode IRC account through various clients',
|
||||
published: '2019-08-22T05:12:03.284Z',
|
||||
author: 'fennifith',
|
||||
authors: ['fennifith'],
|
||||
tags: ['irc'],
|
||||
attached: [],
|
||||
license: 'publicdomain-zero-1'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
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',
|
||||
published: '2019-08-22T05:12:03.284Z',
|
||||
author: 'fennifith',
|
||||
authors: ['fennifith'],
|
||||
tags: ['android', 'ci'],
|
||||
attached: [],
|
||||
license: 'publicdomain-zero-1'
|
||||
|
||||
@@ -35,7 +35,12 @@ exports.sourceNodes = ({ getNodesByType, actions: { createNodeField } }) => {
|
||||
const unicornNodes = getNodesByType(`UnicornsJson`)
|
||||
|
||||
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({
|
||||
name: `isAuthor`,
|
||||
@@ -46,7 +51,7 @@ exports.sourceNodes = ({ getNodesByType, actions: { createNodeField } }) => {
|
||||
}
|
||||
|
||||
exports.createPages = ({ graphql, actions }) => {
|
||||
const { createPage, createNodeField } = actions
|
||||
const { createPage } = actions
|
||||
|
||||
const blogPost = path.resolve(`./src/templates/blog-post.js`)
|
||||
const blogProfile = path.resolve(`./src/templates/blog-profile.js`)
|
||||
|
||||
Reference in New Issue
Block a user