From b0e52ef29d71f059f6641a305d02181046367aaa Mon Sep 17 00:00:00 2001 From: Han <1655466387@qq.com> Date: Mon, 3 Mar 2025 16:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- .../blog/Astro主题优雅的vhAstro-Theme.md | 55 ++++++++++++++++++- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9164330..8b17b41 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 在线演示 ➡️ [https://www.vvhan.com](https://www.vvhan.com) 官方文档 ➡️ [vhAstro-Theme](https://www.vvhan.com/article/astro-theme-vhastro-theme) -![Astro主题 vhAstro-Theme](https://i0.wp.com/uxiaohan.github.io/v2/2025/03/1740899552.webp) +![Astro主题 vhAstro-Theme](https://i0.wp.com/uxiaohan.github.io/v2/2025/03/1740977096666.webp) ## ✨ 功能特性 diff --git a/src/content/blog/Astro主题优雅的vhAstro-Theme.md b/src/content/blog/Astro主题优雅的vhAstro-Theme.md index 8446688..d713c79 100644 --- a/src/content/blog/Astro主题优雅的vhAstro-Theme.md +++ b/src/content/blog/Astro主题优雅的vhAstro-Theme.md @@ -8,7 +8,7 @@ tags: - vhAstro-Theme id: "astro-theme-vhastro-theme" date: 2025-03-02 18:18:18 -cover: "https://i0.wp.com/uxiaohan.github.io/v2/2025/03/1740899552.webp" +cover: "https://i0.wp.com/uxiaohan.github.io/v2/2025/03/1740977096666.webp" recommend: true --- @@ -22,7 +22,7 @@ recommend: true **「当极简主义遇上工程之美」** -![Astro主题 vhAstro-Theme](https://i0.wp.com/uxiaohan.github.io/v2/2025/03/1740899552.webp) +![Astro主题 vhAstro-Theme](https://i0.wp.com/uxiaohan.github.io/v2/2025/03/1740977096666.webp) ## 项目地址 @@ -98,6 +98,57 @@ pnpm build pnpm newpost '文章标题' ``` +## 🍬 特色页面 + +### 友情链接 + +```js +// 配置文件 src/page_data/Link.ts +export default { + // API 接口请求优先,数据格式保持和 data 一致 + api: "", + // api 为空则使用 data 静态数据 + data: [ + { + name: "韩小韩博客", + link: "https://www.vvhan.com", + avatar: "https://q1.qlogo.cn/g?b=qq&nk=1655466387&s=640", + descr: "运气是计划之外的东西." + }, + { + name: "韩小韩API", + link: "https://api.vvhan.com", + avatar: "https://api.vvhan.com/static/images/logo.webp", + descr: "免费Web API数据接口调用服务平台." + } + ] +}; +``` + +### 说说动态 + +```js +// 配置文件 src/page_data/Talking.ts +export default { + // API 接口请求优先,数据格式保持和 data 一致 + api: "", + // api 为空则使用 data 静态数据 + // 注意:图片请用 vh-img-flex 类包裹 + data: [ + { + date: "2025-02-12 19:36:16", + tags: ["树", "夕阳"], + content: '好美🌲

' + }, + { + date: "2024-10-05 16:16:06", + tags: ["日常"], + content: "记录第一条说说" + } + ] +}; +``` + ## 🌈 组件 ### 文本加粗