mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
fix build
This commit is contained in:
parent
2bd87b068f
commit
799e38e3e3
@ -11,7 +11,7 @@ install:
|
||||
|
||||
script:
|
||||
- npm test
|
||||
- npm run build
|
||||
- travis_wait 60 npm run build
|
||||
|
||||
after_success:
|
||||
- pip install --user awscli
|
||||
|
@ -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: `
|
||||
|
Loading…
Reference in New Issue
Block a user