Skip to content

Commit fe2bc3c

Browse files
committed
feat(blog): external canonical for syndicated posts
1 parent 177dacb commit fe2bc3c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/site/next.dynamic.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ const getDynamicRouter = async () => {
230230
];
231231

232232
// Default canonical URL for the page
233-
pageMetadata.alternates.canonical = getUrlForPathname(locale, path);
233+
pageMetadata.alternates.canonical =
234+
data.canonical ?? getUrlForPathname(locale, path);
234235

235236
// Default alternate URL for the page in the default locale
236237
pageMetadata.alternates.languages['x-default'] = getUrlForPathname(

apps/site/pages/en/blog/announcements/mikeal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ category: announcements
44
title: 'In Memory of Mikeal Rogers: A Builder of Communities'
55
layout: blog-post
66
author: Robin Bender Ginn
7+
canonical: https://openjsf.org/blog/in-memory-of-mikeal-rogers
78
---
89

910
![][mikeal-rogers-image]

0 commit comments

Comments
 (0)