From f0f0a5240177e24082c30fe6c5cc9cc3427537e4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 6 Jun 2022 12:49:13 -0700 Subject: [PATCH] clarify video frontmatter prop name --- data/blog/coronary-evidence-video.mdx | 2 +- layouts/PostLayout.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/blog/coronary-evidence-video.mdx b/data/blog/coronary-evidence-video.mdx index fb24ac3..04a5804 100644 --- a/data/blog/coronary-evidence-video.mdx +++ b/data/blog/coronary-evidence-video.mdx @@ -2,7 +2,7 @@ title: Coronary Evidence Tour video date: '2016-04-04' tags: ['video', 'tour'] -video: ZZFlhe_I4kI +youtubeId: ZZFlhe_I4kI draft: false summary: We just toured with Aborted on the Coronary Evidence Tour! --- diff --git a/layouts/PostLayout.tsx b/layouts/PostLayout.tsx index e69df09..67f9420 100644 --- a/layouts/PostLayout.tsx +++ b/layouts/PostLayout.tsx @@ -27,7 +27,7 @@ interface Props { } export default function PostLayout({ frontMatter, authorDetails, next, prev, children }: Props) { - const { slug, fileName, date, title, tags, video } = frontMatter + const { slug, fileName, date, title, tags, youtubeId } = frontMatter return ( @@ -98,14 +98,14 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
{children} - {video ? ( + {youtubeId ? (