mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 20:22:32 +02:00
chore(gatsby): updated gatsby + deps and added canonical links
This commit is contained in:
@@ -62,29 +62,27 @@ export default {
|
||||
guid: site.siteMetadata.url + node?.fields?.slug,
|
||||
custom_elements: [{ "content:encoded": node.html }],
|
||||
})),
|
||||
query: `
|
||||
{
|
||||
allMarkdownRemark(
|
||||
limit: 1000,
|
||||
sort: { order: DESC, fields: [frontmatter___date] },
|
||||
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
|
||||
) {
|
||||
edges {
|
||||
node {
|
||||
html
|
||||
fields {
|
||||
slug
|
||||
}
|
||||
frontmatter {
|
||||
date
|
||||
title
|
||||
description
|
||||
}
|
||||
query: `{
|
||||
allMarkdownRemark(
|
||||
limit: 1000
|
||||
sort: {frontmatter: {date: DESC}}
|
||||
filter: {frontmatter: {template: {eq: "post"}, draft: {ne: true}}}
|
||||
) {
|
||||
edges {
|
||||
node {
|
||||
html
|
||||
fields {
|
||||
slug
|
||||
}
|
||||
frontmatter {
|
||||
date
|
||||
title
|
||||
description
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
}`,
|
||||
output: "/rss.xml",
|
||||
title: config.title,
|
||||
},
|
||||
@@ -191,6 +189,13 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: "gatsby-plugin-react-helmet-canonical-urls",
|
||||
options: {
|
||||
siteUrl: config.url,
|
||||
stripQueryString: true,
|
||||
},
|
||||
},
|
||||
"gatsby-plugin-image",
|
||||
"gatsby-plugin-catch-links",
|
||||
"gatsby-plugin-react-helmet",
|
||||
|
Reference in New Issue
Block a user