Skip to content

Commit 7bf3d56

Browse files
committed
fix: title from content
1 parent 5574fe0 commit 7bf3d56

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

components/PanelDocs.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ const { data: surroundings } = useAsyncData(`${locale.value}-${route.path}-surro
2121
})
2222
})
2323
24+
useHead({
25+
title: page.value?.title,
26+
})
27+
28+
useSeoMeta({
29+
title: page.value?.title,
30+
description: page.value?.description,
31+
})
32+
2433
const prev = computed(() => surroundings.value?.[0])
2534
const next = computed(() => surroundings.value?.[1])
2635
@@ -86,9 +95,9 @@ router.beforeEach(() => {
8695
</script>
8796

8897
<template>
89-
<div grid="~ rows-[min-content_1fr]" relative h-full>
90-
<div flex="~ gap-2 items-center" border="b base dashed" bg-faded px4 py2>
91-
<div i-ph-book-duotone />
98+
<div grid="~ rows-[max-content_1fr]" relative h-full>
99+
<div flex="~ gap-x-2 items-center wrap" border="b base dashed" bg-faded px4 py2>
100+
<div i-ph-book-duotone flex-none />
92101
<template v-for="bc, idx of breadcrumbs" :key="bc.path">
93102
<div v-if="idx !== 0" i-ph-caret-right mx--1 text-sm op50 />
94103
<NuxtLink :to="bc.path" text-sm hover="text-primary">

0 commit comments

Comments
 (0)