1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

fix build

This commit is contained in:
Matthias Kretschmann 2018-10-01 22:43:38 +02:00
parent 2bd87b068f
commit 799e38e3e3
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 9 additions and 8 deletions

View File

@ -11,7 +11,7 @@ install:
script:
- npm test
- npm run build
- travis_wait 60 npm run build
after_success:
- pip install --user awscli

View File

@ -159,10 +159,11 @@ module.exports = {
{
site {
siteMetadata {
siteTitle
siteDescription
siteUrl
author {
name
}
title: siteTitle
description: siteDescription
site_url: siteUrl
}
}
@ -170,15 +171,15 @@ module.exports = {
`,
feeds: [
{
serialize: ({ query: { site, allMarkdownRemark } }) => {
serialize: ({ query: { allMarkdownRemark } }) => {
return allMarkdownRemark.edges.map(edge => ({
title: edge.node.frontmatter.title,
date: edge.node.fields.date,
description: feedContent(edge),
url: site.siteMetadata.siteUrl + edge.node.fields.slug,
url: siteConfig.siteUrl + edge.node.fields.slug,
categories: edge.node.frontmatter.tags,
author: site.siteMetadata.author.name,
guid: site.siteMetadata.siteUrl + edge.node.fields.slug
author: siteConfig.author.name,
guid: siteConfig.siteUrl + edge.node.fields.slug
}))
},
query: `