-
- {title &&
{title}
}
-
{children}
+ <>
+
+
+
+
+
+ {title &&
{title}
}
+
{children}
+
-
+ >
);
};
diff --git a/src/templates/CategoriesTemplate/CategoriesTemplate.tsx b/src/templates/CategoriesTemplate/CategoriesTemplate.tsx
index aeea23d..cc7fe9e 100644
--- a/src/templates/CategoriesTemplate/CategoriesTemplate.tsx
+++ b/src/templates/CategoriesTemplate/CategoriesTemplate.tsx
@@ -13,7 +13,7 @@ const CategoriesTemplate: React.FC = () => {
const categories = useCategoriesList();
return (
-
+
diff --git a/src/templates/CategoryTemplate/CategoryTemplate.tsx b/src/templates/CategoryTemplate/CategoryTemplate.tsx
index 4525bad..7aa8292 100644
--- a/src/templates/CategoryTemplate/CategoryTemplate.tsx
+++ b/src/templates/CategoryTemplate/CategoryTemplate.tsx
@@ -28,7 +28,7 @@ const CategoryTemplate: React.FC = ({ data, pageContext }: Props) => {
currentPage > 0 ? `${group} - Page ${currentPage} - ${siteTitle}` : `${group} - ${siteTitle}`;
return (
-
+
diff --git a/src/templates/IndexTemplate/IndexTemplate.tsx b/src/templates/IndexTemplate/IndexTemplate.tsx
index 6c69af8..3a8ac11 100644
--- a/src/templates/IndexTemplate/IndexTemplate.tsx
+++ b/src/templates/IndexTemplate/IndexTemplate.tsx
@@ -26,7 +26,7 @@ const IndexTemplate: React.FC = ({ data, pageContext }: Props) => {
const pageTitle = currentPage > 0 ? `Posts - Page ${currentPage} - ${siteTitle}` : siteTitle;
return (
-
+
diff --git a/src/templates/NotFoundTemplate/NotFoundTemplate.tsx b/src/templates/NotFoundTemplate/NotFoundTemplate.tsx
index c0e3c9f..516a82d 100644
--- a/src/templates/NotFoundTemplate/NotFoundTemplate.tsx
+++ b/src/templates/NotFoundTemplate/NotFoundTemplate.tsx
@@ -10,7 +10,7 @@ const NotFoundTemplate: React.FC = () => {
const { title, subtitle } = useSiteMetadata();
return (
-
+
diff --git a/src/templates/PageTemplate/PageTemplate.tsx b/src/templates/PageTemplate/PageTemplate.tsx
index ffb24a0..2e651db 100644
--- a/src/templates/PageTemplate/PageTemplate.tsx
+++ b/src/templates/PageTemplate/PageTemplate.tsx
@@ -26,6 +26,7 @@ const PageTemplate: React.FC = ({ data }: Props) => {
title={`${title} - ${siteTitle}`}
description={metaDescription}
socialImage={socialImage?.publicURL}
+ slug={data.markdownRemark.fields.slug}
>
@@ -40,6 +41,9 @@ export const query = graphql`
markdownRemark(fields: { slug: { eq: $slug } }) {
id
html
+ fields {
+ slug
+ }
frontmatter {
title
date
diff --git a/src/templates/PostTemplate/PostTemplate.tsx b/src/templates/PostTemplate/PostTemplate.tsx
index 34d50f4..10dd159 100644
--- a/src/templates/PostTemplate/PostTemplate.tsx
+++ b/src/templates/PostTemplate/PostTemplate.tsx
@@ -24,6 +24,7 @@ const PostTemplate: React.FC = ({ data }: Props) => {
title={`${title} - ${siteTitle}`}
description={metaDescription}
socialImage={socialImage?.publicURL}
+ slug={data.markdownRemark.fields.slug}
>
diff --git a/src/templates/TagTemplate/TagTemplate.tsx b/src/templates/TagTemplate/TagTemplate.tsx
index 444a03f..061a6c4 100644
--- a/src/templates/TagTemplate/TagTemplate.tsx
+++ b/src/templates/TagTemplate/TagTemplate.tsx
@@ -28,7 +28,7 @@ const TagTemplate: React.FC = ({ data, pageContext }: Props) => {
currentPage > 0 ? `${group} - Page ${currentPage} - ${siteTitle}` : `${group} - ${siteTitle}`;
return (
-
+
diff --git a/src/templates/TagsTemplate/TagsTemplate.tsx b/src/templates/TagsTemplate/TagsTemplate.tsx
index 739f8f3..eabf31c 100644
--- a/src/templates/TagsTemplate/TagsTemplate.tsx
+++ b/src/templates/TagsTemplate/TagsTemplate.tsx
@@ -13,7 +13,7 @@ const TagsTemplate: React.FC = () => {
const tags = useTagsList();
return (
-
+