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 () => {
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 (
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ category: announcements
44title : ' In Memory of Mikeal Rogers: A Builder of Communities'
55layout : blog-post
66author : Robin Bender Ginn
7+ canonical : https://openjsf.org/blog/in-memory-of-mikeal-rogers
78---
89
910![ ] [ 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:
6363- ` description ` : Optional meta description for SEO
6464- ` authors ` : For learn pages, list of GitHub usernames
6565
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+
6670### 3. Choose the Appropriate Layout
6771
6872Available layouts are defined in ` apps/site/layouts/ ` , and mapped in ` components/withLayout ` .
You can’t perform that action at this time.
0 commit comments