mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
Emit a <link rel="alternate"> for the markdown version of a page (#3528)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": minor
|
||||
---
|
||||
|
||||
Emit a <link rel="alternate"> for the markdown version of a page
|
||||
@@ -135,6 +135,9 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
|
||||
canonical: linker
|
||||
.toAbsoluteURL(linker.toPathForPage({ pages: revision.pages, page }))
|
||||
.replace(/\/+$/, ''),
|
||||
types: {
|
||||
'text/markdown': `${linker.toAbsoluteURL(linker.toPathInSpace(page.path))}.md`,
|
||||
},
|
||||
},
|
||||
openGraph: {
|
||||
images: [
|
||||
|
||||
Reference in New Issue
Block a user