Simplify canonical url

This commit is contained in:
prototypa
2023-01-06 14:05:55 -05:00
parent ecdcf99958
commit 00b3ef7c17
6 changed files with 6 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ const url = getCanonical(getPermalink(post.slug, 'post'));
const meta = {
title: post.title,
description: post.description,
canonical: post.canonical || url,
canonical: post.canonical || undefined,
image: await findImage(post.image),
ogTitle: post.title,
ogType: 'article',