lint --fix

This commit is contained in:
2025-08-07 22:21:00 +08:00
parent 8e66c0fc56
commit c6ca2507ae
6 changed files with 37 additions and 22 deletions

View File

@@ -162,7 +162,7 @@ const links = computed(() => {
<UContentSurround :surround="surround" />
</UPageBody>
<template
<template
v-if="page?.body?.toc?.links?.length"
#right
>
@@ -174,7 +174,6 @@ const links = computed(() => {
root: 'fixed w-full xl:right-12 xl:w-64 z-50 bg-white dark:bg-gray-900 lg:border border-gray-200 dark:border-gray-700 rounded-lg lg:shadow-lg lg:mt-5'
}"
>
<template
v-if="appConfig.toc?.bottom"
#bottom

View File

@@ -162,7 +162,7 @@ const links = computed(() => {
<UContentSurround :surround="surround" />
</UPageBody>
<template
<template
v-if="page?.body?.toc?.links?.length"
#right
>
@@ -174,7 +174,6 @@ const links = computed(() => {
root: 'fixed w-full xl:right-12 xl:w-64 z-50 bg-white dark:bg-gray-900 lg:border border-gray-200 dark:border-gray-700 rounded-lg lg:shadow-lg lg:mt-5'
}"
>
<template
v-if="appConfig.toc?.bottom"
#bottom

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { useSeoMeta } from '#imports'
definePageMeta({
layout: 'docs'
})
@@ -8,7 +9,7 @@ useSeoMeta({
title: 'Estel Docs',
description: '简约而强大的文档系统,为技术分享而生',
ogTitle: 'Estel Docs',
ogDescription: '简约而强大的文档系统,为技术分享而生',
ogDescription: '简约而强大的文档系统,为技术分享而生'
})
</script>
@@ -51,7 +52,10 @@ useSeoMeta({
</p>
<div class="flex items-center justify-center text-blue-600 dark:text-blue-400 group-hover:text-blue-700 dark:group-hover:text-blue-300 transition-colors">
<span class="mr-2">开始阅读</span>
<UIcon name="lucide-arrow-right" size="20" />
<UIcon
name="lucide-arrow-right"
size="20"
/>
</div>
</div>
</NuxtLink>
@@ -76,7 +80,10 @@ useSeoMeta({
</p>
<div class="flex items-center justify-center text-green-600 dark:text-green-400 group-hover:text-green-700 dark:group-hover:text-green-300 transition-colors">
<span class="mr-2">开始阅读</span>
<UIcon name="lucide-arrow-right" size="20" />
<UIcon
name="lucide-arrow-right"
size="20"
/>
</div>
</div>
</NuxtLink>
@@ -86,14 +93,28 @@ useSeoMeta({
<div class="text-center mt-16">
<div class="flex items-center justify-center gap-8 text-sm text-gray-500 dark:text-gray-400">
<div class="flex items-center gap-2">
<UIcon name="lucide-github" size="16" />
<a href="https://github.com/estel-li/estel-docs" target="_blank" class="hover:text-gray-700 dark:hover:text-gray-200 transition-colors">
<UIcon
name="lucide-github"
size="16"
/>
<a
href="https://github.com/estel-li/estel-docs"
target="_blank"
class="hover:text-gray-700 dark:hover:text-gray-200 transition-colors"
>
GitHub
</a>
</div>
<div class="flex items-center gap-2">
<UIcon name="lucide-globe" size="16" />
<a href="https://lijue.me" target="_blank" class="hover:text-gray-700 dark:hover:text-gray-200 transition-colors">
<UIcon
name="lucide-globe"
size="16"
/>
<a
href="https://lijue.me"
target="_blank"
class="hover:text-gray-700 dark:hover:text-gray-200 transition-colors"
>
个人博客
</a>
</div>