Skip to content

Commit

Permalink
add a canonical tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhrk committed May 13, 2024
1 parent 005d7cc commit b359785
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/posts/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ useHead(() => ({
content: url,
},
],
link: [
{
rel: "canonical",
href: `https://blog.kzhrk.com${route.path}`,
},
],
}));
onMounted(() => {
Expand Down

0 comments on commit b359785

Please sign in to comment.