mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-09 05:05:52 +01:00
fix build
This commit is contained in:
parent
2bd87b068f
commit
799e38e3e3
@ -11,7 +11,7 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
- npm run build
|
- travis_wait 60 npm run build
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- pip install --user awscli
|
- pip install --user awscli
|
||||||
|
@ -159,10 +159,11 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
site {
|
site {
|
||||||
siteMetadata {
|
siteMetadata {
|
||||||
|
siteTitle
|
||||||
|
siteDescription
|
||||||
siteUrl
|
siteUrl
|
||||||
author {
|
title: siteTitle
|
||||||
name
|
description: siteDescription
|
||||||
}
|
|
||||||
site_url: siteUrl
|
site_url: siteUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -170,15 +171,15 @@ module.exports = {
|
|||||||
`,
|
`,
|
||||||
feeds: [
|
feeds: [
|
||||||
{
|
{
|
||||||
serialize: ({ query: { site, allMarkdownRemark } }) => {
|
serialize: ({ query: { allMarkdownRemark } }) => {
|
||||||
return allMarkdownRemark.edges.map(edge => ({
|
return allMarkdownRemark.edges.map(edge => ({
|
||||||
title: edge.node.frontmatter.title,
|
title: edge.node.frontmatter.title,
|
||||||
date: edge.node.fields.date,
|
date: edge.node.fields.date,
|
||||||
description: feedContent(edge),
|
description: feedContent(edge),
|
||||||
url: site.siteMetadata.siteUrl + edge.node.fields.slug,
|
url: siteConfig.siteUrl + edge.node.fields.slug,
|
||||||
categories: edge.node.frontmatter.tags,
|
categories: edge.node.frontmatter.tags,
|
||||||
author: site.siteMetadata.author.name,
|
author: siteConfig.author.name,
|
||||||
guid: site.siteMetadata.siteUrl + edge.node.fields.slug
|
guid: siteConfig.siteUrl + edge.node.fields.slug
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
query: `
|
query: `
|
||||||
|
Loading…
Reference in New Issue
Block a user