File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
pages/en/blog/announcements Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ const getDynamicRouter = async () => {
230
230
] ;
231
231
232
232
// Default canonical URL for the page
233
- pageMetadata . alternates . canonical = getUrlForPathname ( locale , path ) ;
233
+ pageMetadata . alternates . canonical =
234
+ data . canonical ?? getUrlForPathname ( locale , path ) ;
234
235
235
236
// Default alternate URL for the page in the default locale
236
237
pageMetadata . alternates . languages [ 'x-default' ] = getUrlForPathname (
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ category: announcements
4
4
title : ' In Memory of Mikeal Rogers: A Builder of Communities'
5
5
layout : blog-post
6
6
author : Robin Bender Ginn
7
+ canonical : https://openjsf.org/blog/in-memory-of-mikeal-rogers
7
8
---
8
9
9
10
![ ] [ mikeal-rogers-image ]
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ The frontmatter (YAML block at the top) configures page metadata:
63
63
- ` description ` : Optional meta description for SEO
64
64
- ` authors ` : For learn pages, list of GitHub usernames
65
65
66
+ In cases where content has been syndicated from another source, you should also include:
67
+
68
+ - ` canonical ` : The original URL of the content
69
+
66
70
### 3. Choose the Appropriate Layout
67
71
68
72
Available layouts are defined in ` apps/site/layouts/ ` , and mapped in ` components/withLayout ` .
You can’t perform that action at this time.
0 commit comments