refactor(starter): upgrade and move to typescript

This commit is contained in:
Alexander Shelepenok
2022-04-16 14:25:55 +00:00
parent 67ebabbaac
commit 50a99f57f7
156 changed files with 5350 additions and 7173 deletions

View File

@@ -25,7 +25,7 @@ const PageTemplate: React.FC<Props> = ({ data }: Props) => {
<Layout
title={`${title} - ${siteTitle}`}
description={metaDescription}
socialImage={socialImage?.publicURL}
socialImage={socialImage}
>
<Sidebar />
<Page title={title}>
@@ -36,7 +36,7 @@ const PageTemplate: React.FC<Props> = ({ data }: Props) => {
};
export const query = graphql`
query PageBySlug($slug: String!) {
query PageTemplate($slug: String!) {
markdownRemark(fields: { slug: { eq: $slug } }) {
id
html
@@ -44,9 +44,7 @@ export const query = graphql`
title
date
description
socialImage {
publicURL
}
socialImage
}
}
}