mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-05-23 02:02:27 +08:00
💄 docs(ui): adjust the readability of page title
This commit is contained in:
parent
355843b054
commit
ce5214607b
@ -3,9 +3,6 @@ import { withoutTrailingSlash } from 'ufo'
|
|||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
// const nav = inject<Ref<NavItem[]>>('navigation')
|
|
||||||
// const navigation = computed(() => nav?.value)
|
|
||||||
|
|
||||||
const { data: page } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
|
const { data: page } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
|
||||||
|
|
||||||
if (!page.value) {
|
if (!page.value) {
|
||||||
@ -61,7 +58,7 @@ const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
|||||||
<h1 class="text-3xl text-primary font-medium">
|
<h1 class="text-3xl text-primary font-medium">
|
||||||
{{ page?.title || 'untitled' }}
|
{{ page?.title || 'untitled' }}
|
||||||
</h1>
|
</h1>
|
||||||
<p v-if="page?.description" class="text-lg text-neutral-500 mt-2">
|
<p v-if="page?.description" class="text-lg text-neutral-500 dark:text-neutral-400 mt-2">
|
||||||
{{ page.description }}
|
{{ page.description }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user