Skip to content

Commit

Permalink
fix(seo): respect showTitle config in ogImage
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Oct 15, 2024
1 parent 5f4d9c5 commit ea13621
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/OgImage/ShadcnDocs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
style="background-size: 120px 120px; background-image: linear-gradient(to right, #e5e7eb 1px, transparent 1px), linear-gradient(to bottom, #e5e7eb 1px, transparent 1px);"
>
<div class="mb-4 flex">
<img :src="config.header.logo.light" height="65">
<span class="ml-4 self-center text-4xl font-bold">
{{ config.site.name }}
<img :src="logo.light" height="65">
<span v-if="showTitle && siteTitle" class="ml-4 self-center text-4xl font-bold">
{{ siteTitle }}
</span>
</div>
<div class="relative">
Expand All @@ -32,5 +32,5 @@ defineProps({
},
});
const config = useConfig().value;
const { logo, title: siteTitle, showTitle } = useConfig().value.header;
</script>

0 comments on commit ea13621

Please sign in to comment.