Skip to content

Commit

Permalink
Fix og:image.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmurray8 committed Apr 29, 2024
1 parent 9bdbf80 commit b59bc1a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/OgMeta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
}>();
const iconName = props.icon || runtimeConfig.public.websiteIcon;
let iconLocation = runtimeConfig.public.siteUrl;
if (!iconName.startsWith('/') && !iconName.startsWith('https')) {
iconLocation += '/';
if (!iconName.startsWith('https')) {
if (!iconName.startsWith('/')) {
iconLocation += '/';
}
iconLocation += iconName;
} else {
iconLocation = iconName;
}
iconLocation += iconName;
useHead({
title: props.title,
});
Expand Down

0 comments on commit b59bc1a

Please sign in to comment.