mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 04:32:32 +02:00
Fix linting errors.
This commit is contained in:
@@ -16,7 +16,8 @@ type Props = {
|
||||
const PageTemplate = ({ data }: Props) => {
|
||||
const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();
|
||||
const { html: pageBody } = data.markdownRemark;
|
||||
const { title: pageTitle, description: pageDescription, socialImage } = data.markdownRemark.frontmatter;
|
||||
const frontmatter = data.markdownRemark.frontmatter;
|
||||
const { title: pageTitle, description: pageDescription, socialImage } = frontmatter;
|
||||
const metaDescription = pageDescription !== null ? pageDescription : siteSubtitle;
|
||||
|
||||
return (
|
||||
|
@@ -14,7 +14,8 @@ type Props = {
|
||||
|
||||
const PostTemplate = ({ data }: Props) => {
|
||||
const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();
|
||||
const { title: postTitle, description: postDescription, socialImage } = data.markdownRemark.frontmatter;
|
||||
const frontmatter = data.markdownRemark.frontmatter;
|
||||
const { title: postTitle, description: postDescription, socialImage } = frontmatter;
|
||||
const metaDescription = postDescription !== null ? postDescription : siteSubtitle;
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user