Improve RSS channel defaults

This commit is contained in:
Reed Jones 2018-02-11 16:14:51 -07:00
parent ccc8c48085
commit 83ed5150f1

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
url: 'https://lumen.netlify.com/', url: 'https://lumen.netlify.com',
title: 'Blog by John Doe', title: 'Blog by John Doe',
subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.', subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
copyright: '© All rights reserved.', copyright: '© All rights reserved.',
@ -44,9 +44,9 @@ module.exports = {
{ {
site { site {
siteMetadata { siteMetadata {
url site_url: url
title title
subtitle description: subtitle
} }
} }
} }
@ -58,8 +58,8 @@ module.exports = {
Object.assign({}, edge.node.frontmatter, { Object.assign({}, edge.node.frontmatter, {
description: edge.node.frontmatter.description, description: edge.node.frontmatter.description,
date: edge.node.frontmatter.date, date: edge.node.frontmatter.date,
url: site.siteMetadata.url + edge.node.fields.slug, url: site.siteMetadata.site_url + edge.node.fields.slug,
guid: site.siteMetadata.url + edge.node.fields.slug, guid: site.siteMetadata.site_url + edge.node.fields.slug,
custom_elements: [{ 'content:encoded': edge.node.html }] custom_elements: [{ 'content:encoded': edge.node.html }]
})) }))
), ),