docs(OgImageDocs): handle when no description provided

This commit is contained in:
Benjamin Canac
2023-11-29 17:38:37 +01:00
parent 6984989a2c
commit 464ff0b703

View File

@@ -56,7 +56,7 @@ defineProps({
<h1 class="m-0 text-[75px] font-semibold mb-2 text-white flex items-center">
<span>{{ title }}</span>
</h1>
<p class="text-[32px] text-[#94a3b8] leading-tight">
<p v-if="description" class="text-[32px] text-[#94a3b8] leading-tight">
{{ description.slice(0, 200) }}
</p>
</div>