Skip to content

Commit

Permalink
website: Fix Alternate page with proper canonical tag
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <Rem01_Gaming@proton.me>
  • Loading branch information
Rem01Gaming committed Nov 19, 2024
1 parent 7011b7e commit 09acdec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
transformPageData(pageData) {
const canonicalUrl = `${this.sitemap.hostname}/${pageData.relativePath}`
.replace(/index\.md$/, '')
.replace(/\.md$/, '.html')
.replace(/\.md$/, '')
const ogImage = pageData.frontmatter.ogp ? `${this.sitemap.hostname}${pageData.frontmatter.ogp}` : `${this.sitemap.hostname}/ogp/default.png`;

pageData.frontmatter.head ??= []
Expand Down

0 comments on commit 09acdec

Please sign in to comment.