From c557e6980cd7d06ce97398d2fe0306bed22ee860 Mon Sep 17 00:00:00 2001 From: estel <690930@qq.com> Date: Sun, 10 Aug 2025 16:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E4=BA=AB=E5=88=B0?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=8C=89=E9=92=AE=E8=87=B3HeaderLinks=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6.=20=20=E5=B9=B6=E4=BF=AE=E6=94=B9=E5=8D=9A?= =?UTF-8?q?=E5=AE=A2=E6=96=87=E7=AB=A0=E5=A4=B4=E6=A0=B7=E5=BC=8F,?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=97=A5=E6=9C=9F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/docs/DocsPageHeaderLinks.vue | 29 ++++++++++++ app/layouts/default.vue | 46 +++++++++++++++++++ app/layouts/docs.vue | 2 +- app/pages/blog/[...slug].vue | 50 +++++++++++---------- app/pages/index.vue | 30 ++++++------- 5 files changed, 117 insertions(+), 40 deletions(-) create mode 100644 app/layouts/default.vue diff --git a/app/components/docs/DocsPageHeaderLinks.vue b/app/components/docs/DocsPageHeaderLinks.vue index 30d3567..f00d475 100644 --- a/app/components/docs/DocsPageHeaderLinks.vue +++ b/app/components/docs/DocsPageHeaderLinks.vue @@ -1,5 +1,6 @@ diff --git a/app/layouts/docs.vue b/app/layouts/docs.vue index a94c42e..19c828d 100644 --- a/app/layouts/docs.vue +++ b/app/layouts/docs.vue @@ -23,7 +23,7 @@ - + diff --git a/app/pages/blog/[...slug].vue b/app/pages/blog/[...slug].vue index 190472c..1511235 100644 --- a/app/pages/blog/[...slug].vue +++ b/app/pages/blog/[...slug].vue @@ -70,6 +70,7 @@ defineOgImageComponent('Docs', { headline: headline.value }) + const editLink = computed(() => { if (!appConfig.github) { return @@ -99,14 +100,14 @@ const links = computed(() => { return [...links, ...(appConfig.toc?.bottom?.links || [])].filter(Boolean) }) -// ===== 微信分享(测试按钮用)===== -const wxShareActive = ref(false) -// const contentRoot = ref(null) +// // ===== 微信分享(测试按钮用)===== +// const wxShareActive = ref(false) +// // const contentRoot = ref(null) -const shareLink = computed(() => 'https://lijue.me' + decodeURIComponent(path.value)) -const shareTitle = computed(() => title) -const shareDesc = computed(() => description || title) -const shareImg = page?.value?.img +// const shareLink = computed(() => 'https://lijue.me' + decodeURIComponent(path.value)) +// const shareTitle = computed(() => title) +// const shareDesc = computed(() => description || title) +// const shareImg = page?.value?.img // const shareImg = ref('/images/default-blog.jpg') // onMounted(() => { @@ -118,17 +119,17 @@ const shareImg = page?.value?.img // } // }) -// Toast:点击测试分享后给出指引 -const toast = useToast() -function handleShareClick() { - wxShareActive.value = true - toast.add({ - title: '已获取分享接口', - description: '点击右上角分享吧', - duration: 3000, - icon: 'i-lucide-share-2' - }) -} +// // Toast:点击测试分享后给出指引 +// const toast = useToast() +// function handleShareClick() { +// wxShareActive.value = true +// toast.add({ +// title: '已获取分享接口', +// description: '点击右上角分享吧', +// duration: 3000, +// icon: 'i-lucide-share-2' +// }) +// } @@ -144,6 +145,7 @@ function handleShareClick() { wrapper: 'flex-row items-center flex-wrap justify-between ' }" > + {{ page.date }} or - + - 微信分享 - + --> - + - + - + - - + + Estel Hub - + 简约而强大的文档系统,衍生而出Blog系统,为技术分享而生 - + 基于 Nuxt 4 构建,支持 Markdown 文档管理和博客发布,提供完整的现代化内容管理解决方案 @@ -35,10 +35,10 @@ useSeoMeta({ - + 文档系统 - - 技术文档、API 文档、使用指南,一切尽在掌握 + + 技术文档、API 文档、使用指南 开始阅读 @@ -63,10 +63,10 @@ useSeoMeta({ - + 博客系统 - - 技术分享、心得体会、生活感悟,记录每一个精彩瞬间 + + 技术分享、心得体会、生活感悟 开始阅读
+
简约而强大的文档系统,衍生而出Blog系统,为技术分享而生
基于 Nuxt 4 构建,支持 Markdown 文档管理和博客发布,提供完整的现代化内容管理解决方案
- 技术文档、API 文档、使用指南,一切尽在掌握 +
+ 技术文档、API 文档、使用指南
- 技术分享、心得体会、生活感悟,记录每一个精彩瞬间 +
+ 技术分享、心得体会、生活感悟