mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
Improve RSS channel defaults
This commit is contained in:
parent
ccc8c48085
commit
83ed5150f1
@ -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 }]
|
||||||
}))
|
}))
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user