Use canonical in posts in case you define
This commit is contained in:
@ -19,7 +19,7 @@ const { post } = Astro.props;
|
|||||||
|
|
||||||
const title = `${post.title} — ${SITE.name}`;
|
const title = `${post.title} — ${SITE.name}`;
|
||||||
const description = post.description;
|
const description = post.description;
|
||||||
const canonical = new URL(`blog/${post.slug}`, Astro.site);
|
const canonical = post.canonical || new URL(`blog/${post.slug}`, Astro.site);
|
||||||
|
|
||||||
const image = await findImage(post.image);
|
const image = await findImage(post.image);
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user