Fix linting errors.

This commit is contained in:
Aleksander Helgaker 2019-08-25 14:15:37 +02:00
parent c94d7409c8
commit d12a416a3d
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;