mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 15:29:16 +01:00
Fix linting errors.
This commit is contained in:
parent
c94d7409c8
commit
d12a416a3d
@ -13,7 +13,7 @@ type Props = {
|
||||
socialImage? :string
|
||||
};
|
||||
|
||||
const Layout = ({
|
||||
const Layout = ({
|
||||
children,
|
||||
title,
|
||||
description,
|
||||
|
@ -16,7 +16,7 @@ type Props = {
|
||||
const PageTemplate = ({ data }: Props) => {
|
||||
const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();
|
||||
const { html: pageBody } = data.markdownRemark;
|
||||
const frontmatter = data.markdownRemark.frontmatter;
|
||||
const { frontmatter } = data.markdownRemark;
|
||||
const { title: pageTitle, description: pageDescription, socialImage } = frontmatter;
|
||||
const metaDescription = pageDescription !== null ? pageDescription : siteSubtitle;
|
||||
|
||||
|
@ -14,7 +14,7 @@ type Props = {
|
||||
|
||||
const PostTemplate = ({ data }: Props) => {
|
||||
const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();
|
||||
const frontmatter = data.markdownRemark.frontmatter;
|
||||
const { frontmatter } = data.markdownRemark;
|
||||
const { title: postTitle, description: postDescription, socialImage } = frontmatter;
|
||||
const metaDescription = postDescription !== null ? postDescription : siteSubtitle;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user