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

@@ -21,14 +21,11 @@ const CategoryTemplate: React.FC<Props> = ({ data, pageContext }: Props) => {
const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();
const { group, pagination } = pageContext;
const { currentPage, prevPagePath, nextPagePath, hasPrevPage, hasNextPage } =
pagination;
const { currentPage, prevPagePath, nextPagePath, hasPrevPage, hasNextPage } = pagination;
const { edges } = data.allMarkdownRemark;
const pageTitle =
currentPage > 0
? `${group} - Page ${currentPage} - ${siteTitle}`
: `${group} - ${siteTitle}`;
currentPage > 0 ? `${group} - Page ${currentPage} - ${siteTitle}` : `${group} - ${siteTitle}`;
return (
<Layout title={pageTitle} description={siteSubtitle}>
@@ -52,13 +49,9 @@ export const query = graphql`
limit: $limit
skip: $offset
filter: {
frontmatter: {
category: { eq: $group }
template: { eq: "post" }
draft: { ne: true }
}
frontmatter: { category: { eq: $group }, template: { eq: "post" }, draft: { ne: true } }
}
sort: { order: DESC, fields: [frontmatter___date] }
sort: { frontmatter: { date: DESC } }
) {
edges {
node {