chore(gatsby): updated gatsby + deps and added canonical links

This commit is contained in:
2023-03-26 23:20:54 +02:00
parent 46ee4fbb90
commit 0c7ee90547
24 changed files with 6759 additions and 6399 deletions

View File

@@ -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",