Skip to content

Commit

Permalink
fix(useContentHead): set property instead of name for OG metadata (
Browse files Browse the repository at this point in the history
  • Loading branch information
tmlmt authored Mar 28, 2023
1 parent 884f5d8 commit 4dd4cb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/composables/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useContentHead = (
head.title = title
if (process.server && !head.meta.some(m => m.property === 'og:title')) {
head.meta.push({
name: 'og:title',
property: 'og:title',
content: title as string
})
}
Expand All @@ -47,7 +47,7 @@ export const useContentHead = (
const url = config.public.content.trailingSlash ? withTrailingSlash(_url) : withoutTrailingSlash(_url)
if (!head.meta.some(m => m.property === 'og:url')) {
head.meta.push({
name: 'og:url',
property: 'og:url',
content: url
})
}
Expand All @@ -72,7 +72,7 @@ export const useContentHead = (
}
if (process.server && description && !head.meta.some(m => m.property === 'og:description')) {
head.meta.push({
name: 'og:description',
property: 'og:description',
content: description
})
}
Expand Down

0 comments on commit 4dd4cb9

Please sign in to comment.