diff --git a/src/pages/blog/[slug].jsx b/src/pages/blog/[slug].jsx
index fab01ac..d4bf114 100644
--- a/src/pages/blog/[slug].jsx
+++ b/src/pages/blog/[slug].jsx
@@ -16,6 +16,7 @@ export default function SinglePost(properties) {
if (loading) return
Loading...
;
if (error) return Error! {error.message}
;
+ if (!post) return;
const { title, date, author, uri, excerpt, editorBlocks } = post;
const blockList = flatListToHierarchical(editorBlocks, {
@@ -30,7 +31,7 @@ export default function SinglePost(properties) {
/gm, "")}
+ description={(excerpt ?? "").replaceAll(/<\/?\S+>/gm, "")}
/>
@@ -73,7 +74,6 @@ SinglePost.query = gql`
...${blocks.CoreParagraph.fragments.key}
...${blocks.CoreColumns.fragments.key}
...${blocks.CoreColumn.fragments.key}
- ...${blocks.CoreCode.fragments.key}
...${blocks.CoreButtons.fragments.key}
...${blocks.CoreButton.fragments.key}
...${blocks.CoreQuote.fragments.key}
@@ -97,7 +97,6 @@ SinglePost.query = gql`
${blocks.CoreSeparator.fragments.entry}
${blocks.CoreList.fragments.entry}
${blocks.CoreHeading.fragments.entry}
- ${blocks.CoreCode.fragments.entry}
${blocks.CoreEmbed.fragments.entry}
`;