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