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

@@ -13,12 +13,10 @@ const categoriesQuery = async (graphql: CreatePagesArgs["graphql"]) => {
const result = await graphql<CategoriesQueryResult>(`
{
allMarkdownRemark(
filter: {
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
}
sort: { order: DESC, fields: [frontmatter___date] }
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
sort: { frontmatter: { date: DESC } }
) {
group(field: frontmatter___category) {
group(field: { frontmatter: { category: SELECT } }) {
fieldValue
totalCount
}

View File

@@ -13,11 +13,9 @@ const tagsQuery = async (graphql: CreatePagesArgs["graphql"]) => {
const result = await graphql<TagsQueryResult>(`
{
allMarkdownRemark(
filter: {
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
}
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
) {
group(field: frontmatter___tags) {
group(field: { frontmatter: { tags: SELECT } }) {
fieldValue
totalCount
}