mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +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",
|
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'
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
@@ -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`)
|
||||||
|
|||||||
Reference in New Issue
Block a user