From 5678b95f6fc24b2f5f05b6bc742708052b44313f Mon Sep 17 00:00:00 2001 From: biss Date: Thu, 18 Jun 2026 21:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {source/_posts => posts}/2025/2025.08/add-ai-summary.md | 0 {source/_posts => posts}/2025/2025.08/add-calendar-side.md | 0 {source/_posts => posts}/2025/2025.08/add-cms-system.md | 4 ++-- .../_posts => posts}/2025/2025.08/add-own-app-to-1panel.md | 0 .../2025/2025.08/add-welcome-message-in-sidebar.md | 0 {source/_posts => posts}/2025/2025.08/c-first-in-first.md | 0 {source/_posts => posts}/2025/2025.08/cs-2.md | 0 {source/_posts => posts}/2025/2025.08/custom-bottom.md | 0 .../_posts => posts}/2025/2025.08/custom-category-bar.md | 0 {source/_posts => posts}/2025/2025.08/custom-font.md | 0 {source/_posts => posts}/2025/2025.08/custom-footer.md | 0 {source/_posts => posts}/2025/2025.08/custom-navbar.md | 0 {source/_posts => posts}/2025/2025.08/custom-right-menu.md | 0 .../2025/2025.08/deploy-owncloud-and-onlyoffice.md | 0 {source/_posts => posts}/2025/2025.08/en250811.md | 0 {source/_posts => posts}/2025/2025.08/go-to-random-page.md | 0 {source/_posts => posts}/2025/2025.08/how-to-deploy.md | 0 {source/_posts => posts}/2025/2025.08/set-shuoshuo-page.md | 0 {source/_posts => posts}/2025/2025.08/tr3000-openwrt.md | 0 .../2025/2025.08/use-github-to-deploy-on-server.md | 0 .../2025/2025.09/install-adguardhome-on-openwrt.md | 0 .../2025/2025.09/install-openclash-on-openwrt.md | 0 .../_posts => posts}/2025/2025.10/adguard-and-openclash.md | 0 {source/_posts => posts}/2025/2025.10/adguard-rules.md | 0 {source/_posts => posts}/2026/2026.1/about-my-friends.md | 0 {source/_posts => posts}/2026/2026.2/add-float-menu.md | 0 {source/_posts => posts}/2026/2026.2/add-renovate-bot.md | 0 .../_posts => posts}/2026/2026.2/add-typesense-search.md | 0 .../_posts => posts}/2026/2026.2/happy-new-year-2026.md | 0 {source/_posts => posts}/2026/2026.2/install-bitwarden.md | 0 {source/_posts => posts}/2026/2026.2/install-gitea.md | 0 {source/_posts => posts}/2026/2026.2/remove-to-gitea.md | 0 {source/_posts => posts}/2026/2026.3/opencv-1.md | 0 {source/_posts => posts}/2026/2026.3/opencv-2.md | 0 {source/_posts => posts}/2026/2026.3/opencv-install.md | 0 {source/_posts => posts}/2026/2026.4/gpt-img2.md | 0 {source/_posts => posts}/2026/2026.4/install-opengl.md | 0 {source/_posts => posts}/2026/2026.4/msp-1.md | 0 {source/_posts => posts}/2026/2026.4/opengl-1.md | 0 {source/_posts => posts}/2026/2026.4/opengl-2.md | 0 {source/_posts => posts}/2026/2026.4/opengl-3.md | 0 .../2026/2026.5/ordinary-day-own-rhythm.md | 0 scripts/generate-abbrlinks.mjs | 2 +- src/lib/posts.ts | 2 +- src/pages/shuoshuo.astro | 7 +++++-- 45 files changed, 9 insertions(+), 6 deletions(-) rename {source/_posts => posts}/2025/2025.08/add-ai-summary.md (100%) rename {source/_posts => posts}/2025/2025.08/add-calendar-side.md (100%) rename {source/_posts => posts}/2025/2025.08/add-cms-system.md (98%) rename {source/_posts => posts}/2025/2025.08/add-own-app-to-1panel.md (100%) rename {source/_posts => posts}/2025/2025.08/add-welcome-message-in-sidebar.md (100%) rename {source/_posts => posts}/2025/2025.08/c-first-in-first.md (100%) rename {source/_posts => posts}/2025/2025.08/cs-2.md (100%) rename {source/_posts => posts}/2025/2025.08/custom-bottom.md (100%) rename {source/_posts => posts}/2025/2025.08/custom-category-bar.md (100%) rename {source/_posts => posts}/2025/2025.08/custom-font.md (100%) rename {source/_posts => posts}/2025/2025.08/custom-footer.md (100%) rename {source/_posts => posts}/2025/2025.08/custom-navbar.md (100%) rename {source/_posts => posts}/2025/2025.08/custom-right-menu.md (100%) rename {source/_posts => posts}/2025/2025.08/deploy-owncloud-and-onlyoffice.md (100%) rename {source/_posts => posts}/2025/2025.08/en250811.md (100%) rename {source/_posts => posts}/2025/2025.08/go-to-random-page.md (100%) rename {source/_posts => posts}/2025/2025.08/how-to-deploy.md (100%) rename {source/_posts => posts}/2025/2025.08/set-shuoshuo-page.md (100%) rename {source/_posts => posts}/2025/2025.08/tr3000-openwrt.md (100%) rename {source/_posts => posts}/2025/2025.08/use-github-to-deploy-on-server.md (100%) rename {source/_posts => posts}/2025/2025.09/install-adguardhome-on-openwrt.md (100%) rename {source/_posts => posts}/2025/2025.09/install-openclash-on-openwrt.md (100%) rename {source/_posts => posts}/2025/2025.10/adguard-and-openclash.md (100%) rename {source/_posts => posts}/2025/2025.10/adguard-rules.md (100%) rename {source/_posts => posts}/2026/2026.1/about-my-friends.md (100%) rename {source/_posts => posts}/2026/2026.2/add-float-menu.md (100%) rename {source/_posts => posts}/2026/2026.2/add-renovate-bot.md (100%) rename {source/_posts => posts}/2026/2026.2/add-typesense-search.md (100%) rename {source/_posts => posts}/2026/2026.2/happy-new-year-2026.md (100%) rename {source/_posts => posts}/2026/2026.2/install-bitwarden.md (100%) rename {source/_posts => posts}/2026/2026.2/install-gitea.md (100%) rename {source/_posts => posts}/2026/2026.2/remove-to-gitea.md (100%) rename {source/_posts => posts}/2026/2026.3/opencv-1.md (100%) rename {source/_posts => posts}/2026/2026.3/opencv-2.md (100%) rename {source/_posts => posts}/2026/2026.3/opencv-install.md (100%) rename {source/_posts => posts}/2026/2026.4/gpt-img2.md (100%) rename {source/_posts => posts}/2026/2026.4/install-opengl.md (100%) rename {source/_posts => posts}/2026/2026.4/msp-1.md (100%) rename {source/_posts => posts}/2026/2026.4/opengl-1.md (100%) rename {source/_posts => posts}/2026/2026.4/opengl-2.md (100%) rename {source/_posts => posts}/2026/2026.4/opengl-3.md (100%) rename {source/_posts => posts}/2026/2026.5/ordinary-day-own-rhythm.md (100%) diff --git a/source/_posts/2025/2025.08/add-ai-summary.md b/posts/2025/2025.08/add-ai-summary.md similarity index 100% rename from source/_posts/2025/2025.08/add-ai-summary.md rename to posts/2025/2025.08/add-ai-summary.md diff --git a/source/_posts/2025/2025.08/add-calendar-side.md b/posts/2025/2025.08/add-calendar-side.md similarity index 100% rename from source/_posts/2025/2025.08/add-calendar-side.md rename to posts/2025/2025.08/add-calendar-side.md diff --git a/source/_posts/2025/2025.08/add-cms-system.md b/posts/2025/2025.08/add-cms-system.md similarity index 98% rename from source/_posts/2025/2025.08/add-cms-system.md rename to posts/2025/2025.08/add-cms-system.md index a234ee6..feb14f5 100644 --- a/source/_posts/2025/2025.08/add-cms-system.md +++ b/posts/2025/2025.08/add-cms-system.md @@ -173,7 +173,7 @@ common_col_conf: &common_col_conf collections: - name: "2023" label: "2023" - folder: "source/_posts/2023" + folder: "posts/2023" preview_path: "2023/{{filename}}/" <<: *common_col_conf - name: "pages" @@ -214,4 +214,4 @@ collections: # 大功告成 -访问博客的admin就可以了 \ No newline at end of file +访问博客的admin就可以了 diff --git a/source/_posts/2025/2025.08/add-own-app-to-1panel.md b/posts/2025/2025.08/add-own-app-to-1panel.md similarity index 100% rename from source/_posts/2025/2025.08/add-own-app-to-1panel.md rename to posts/2025/2025.08/add-own-app-to-1panel.md diff --git a/source/_posts/2025/2025.08/add-welcome-message-in-sidebar.md b/posts/2025/2025.08/add-welcome-message-in-sidebar.md similarity index 100% rename from source/_posts/2025/2025.08/add-welcome-message-in-sidebar.md rename to posts/2025/2025.08/add-welcome-message-in-sidebar.md diff --git a/source/_posts/2025/2025.08/c-first-in-first.md b/posts/2025/2025.08/c-first-in-first.md similarity index 100% rename from source/_posts/2025/2025.08/c-first-in-first.md rename to posts/2025/2025.08/c-first-in-first.md diff --git a/source/_posts/2025/2025.08/cs-2.md b/posts/2025/2025.08/cs-2.md similarity index 100% rename from source/_posts/2025/2025.08/cs-2.md rename to posts/2025/2025.08/cs-2.md diff --git a/source/_posts/2025/2025.08/custom-bottom.md b/posts/2025/2025.08/custom-bottom.md similarity index 100% rename from source/_posts/2025/2025.08/custom-bottom.md rename to posts/2025/2025.08/custom-bottom.md diff --git a/source/_posts/2025/2025.08/custom-category-bar.md b/posts/2025/2025.08/custom-category-bar.md similarity index 100% rename from source/_posts/2025/2025.08/custom-category-bar.md rename to posts/2025/2025.08/custom-category-bar.md diff --git a/source/_posts/2025/2025.08/custom-font.md b/posts/2025/2025.08/custom-font.md similarity index 100% rename from source/_posts/2025/2025.08/custom-font.md rename to posts/2025/2025.08/custom-font.md diff --git a/source/_posts/2025/2025.08/custom-footer.md b/posts/2025/2025.08/custom-footer.md similarity index 100% rename from source/_posts/2025/2025.08/custom-footer.md rename to posts/2025/2025.08/custom-footer.md diff --git a/source/_posts/2025/2025.08/custom-navbar.md b/posts/2025/2025.08/custom-navbar.md similarity index 100% rename from source/_posts/2025/2025.08/custom-navbar.md rename to posts/2025/2025.08/custom-navbar.md diff --git a/source/_posts/2025/2025.08/custom-right-menu.md b/posts/2025/2025.08/custom-right-menu.md similarity index 100% rename from source/_posts/2025/2025.08/custom-right-menu.md rename to posts/2025/2025.08/custom-right-menu.md diff --git a/source/_posts/2025/2025.08/deploy-owncloud-and-onlyoffice.md b/posts/2025/2025.08/deploy-owncloud-and-onlyoffice.md similarity index 100% rename from source/_posts/2025/2025.08/deploy-owncloud-and-onlyoffice.md rename to posts/2025/2025.08/deploy-owncloud-and-onlyoffice.md diff --git a/source/_posts/2025/2025.08/en250811.md b/posts/2025/2025.08/en250811.md similarity index 100% rename from source/_posts/2025/2025.08/en250811.md rename to posts/2025/2025.08/en250811.md diff --git a/source/_posts/2025/2025.08/go-to-random-page.md b/posts/2025/2025.08/go-to-random-page.md similarity index 100% rename from source/_posts/2025/2025.08/go-to-random-page.md rename to posts/2025/2025.08/go-to-random-page.md diff --git a/source/_posts/2025/2025.08/how-to-deploy.md b/posts/2025/2025.08/how-to-deploy.md similarity index 100% rename from source/_posts/2025/2025.08/how-to-deploy.md rename to posts/2025/2025.08/how-to-deploy.md diff --git a/source/_posts/2025/2025.08/set-shuoshuo-page.md b/posts/2025/2025.08/set-shuoshuo-page.md similarity index 100% rename from source/_posts/2025/2025.08/set-shuoshuo-page.md rename to posts/2025/2025.08/set-shuoshuo-page.md diff --git a/source/_posts/2025/2025.08/tr3000-openwrt.md b/posts/2025/2025.08/tr3000-openwrt.md similarity index 100% rename from source/_posts/2025/2025.08/tr3000-openwrt.md rename to posts/2025/2025.08/tr3000-openwrt.md diff --git a/source/_posts/2025/2025.08/use-github-to-deploy-on-server.md b/posts/2025/2025.08/use-github-to-deploy-on-server.md similarity index 100% rename from source/_posts/2025/2025.08/use-github-to-deploy-on-server.md rename to posts/2025/2025.08/use-github-to-deploy-on-server.md diff --git a/source/_posts/2025/2025.09/install-adguardhome-on-openwrt.md b/posts/2025/2025.09/install-adguardhome-on-openwrt.md similarity index 100% rename from source/_posts/2025/2025.09/install-adguardhome-on-openwrt.md rename to posts/2025/2025.09/install-adguardhome-on-openwrt.md diff --git a/source/_posts/2025/2025.09/install-openclash-on-openwrt.md b/posts/2025/2025.09/install-openclash-on-openwrt.md similarity index 100% rename from source/_posts/2025/2025.09/install-openclash-on-openwrt.md rename to posts/2025/2025.09/install-openclash-on-openwrt.md diff --git a/source/_posts/2025/2025.10/adguard-and-openclash.md b/posts/2025/2025.10/adguard-and-openclash.md similarity index 100% rename from source/_posts/2025/2025.10/adguard-and-openclash.md rename to posts/2025/2025.10/adguard-and-openclash.md diff --git a/source/_posts/2025/2025.10/adguard-rules.md b/posts/2025/2025.10/adguard-rules.md similarity index 100% rename from source/_posts/2025/2025.10/adguard-rules.md rename to posts/2025/2025.10/adguard-rules.md diff --git a/source/_posts/2026/2026.1/about-my-friends.md b/posts/2026/2026.1/about-my-friends.md similarity index 100% rename from source/_posts/2026/2026.1/about-my-friends.md rename to posts/2026/2026.1/about-my-friends.md diff --git a/source/_posts/2026/2026.2/add-float-menu.md b/posts/2026/2026.2/add-float-menu.md similarity index 100% rename from source/_posts/2026/2026.2/add-float-menu.md rename to posts/2026/2026.2/add-float-menu.md diff --git a/source/_posts/2026/2026.2/add-renovate-bot.md b/posts/2026/2026.2/add-renovate-bot.md similarity index 100% rename from source/_posts/2026/2026.2/add-renovate-bot.md rename to posts/2026/2026.2/add-renovate-bot.md diff --git a/source/_posts/2026/2026.2/add-typesense-search.md b/posts/2026/2026.2/add-typesense-search.md similarity index 100% rename from source/_posts/2026/2026.2/add-typesense-search.md rename to posts/2026/2026.2/add-typesense-search.md diff --git a/source/_posts/2026/2026.2/happy-new-year-2026.md b/posts/2026/2026.2/happy-new-year-2026.md similarity index 100% rename from source/_posts/2026/2026.2/happy-new-year-2026.md rename to posts/2026/2026.2/happy-new-year-2026.md diff --git a/source/_posts/2026/2026.2/install-bitwarden.md b/posts/2026/2026.2/install-bitwarden.md similarity index 100% rename from source/_posts/2026/2026.2/install-bitwarden.md rename to posts/2026/2026.2/install-bitwarden.md diff --git a/source/_posts/2026/2026.2/install-gitea.md b/posts/2026/2026.2/install-gitea.md similarity index 100% rename from source/_posts/2026/2026.2/install-gitea.md rename to posts/2026/2026.2/install-gitea.md diff --git a/source/_posts/2026/2026.2/remove-to-gitea.md b/posts/2026/2026.2/remove-to-gitea.md similarity index 100% rename from source/_posts/2026/2026.2/remove-to-gitea.md rename to posts/2026/2026.2/remove-to-gitea.md diff --git a/source/_posts/2026/2026.3/opencv-1.md b/posts/2026/2026.3/opencv-1.md similarity index 100% rename from source/_posts/2026/2026.3/opencv-1.md rename to posts/2026/2026.3/opencv-1.md diff --git a/source/_posts/2026/2026.3/opencv-2.md b/posts/2026/2026.3/opencv-2.md similarity index 100% rename from source/_posts/2026/2026.3/opencv-2.md rename to posts/2026/2026.3/opencv-2.md diff --git a/source/_posts/2026/2026.3/opencv-install.md b/posts/2026/2026.3/opencv-install.md similarity index 100% rename from source/_posts/2026/2026.3/opencv-install.md rename to posts/2026/2026.3/opencv-install.md diff --git a/source/_posts/2026/2026.4/gpt-img2.md b/posts/2026/2026.4/gpt-img2.md similarity index 100% rename from source/_posts/2026/2026.4/gpt-img2.md rename to posts/2026/2026.4/gpt-img2.md diff --git a/source/_posts/2026/2026.4/install-opengl.md b/posts/2026/2026.4/install-opengl.md similarity index 100% rename from source/_posts/2026/2026.4/install-opengl.md rename to posts/2026/2026.4/install-opengl.md diff --git a/source/_posts/2026/2026.4/msp-1.md b/posts/2026/2026.4/msp-1.md similarity index 100% rename from source/_posts/2026/2026.4/msp-1.md rename to posts/2026/2026.4/msp-1.md diff --git a/source/_posts/2026/2026.4/opengl-1.md b/posts/2026/2026.4/opengl-1.md similarity index 100% rename from source/_posts/2026/2026.4/opengl-1.md rename to posts/2026/2026.4/opengl-1.md diff --git a/source/_posts/2026/2026.4/opengl-2.md b/posts/2026/2026.4/opengl-2.md similarity index 100% rename from source/_posts/2026/2026.4/opengl-2.md rename to posts/2026/2026.4/opengl-2.md diff --git a/source/_posts/2026/2026.4/opengl-3.md b/posts/2026/2026.4/opengl-3.md similarity index 100% rename from source/_posts/2026/2026.4/opengl-3.md rename to posts/2026/2026.4/opengl-3.md diff --git a/source/_posts/2026/2026.5/ordinary-day-own-rhythm.md b/posts/2026/2026.5/ordinary-day-own-rhythm.md similarity index 100% rename from source/_posts/2026/2026.5/ordinary-day-own-rhythm.md rename to posts/2026/2026.5/ordinary-day-own-rhythm.md diff --git a/scripts/generate-abbrlinks.mjs b/scripts/generate-abbrlinks.mjs index cc7ef37..efda223 100644 --- a/scripts/generate-abbrlinks.mjs +++ b/scripts/generate-abbrlinks.mjs @@ -1,7 +1,7 @@ import { readdir, readFile, writeFile } from 'node:fs/promises'; import { basename, extname, join, relative } from 'node:path'; -const POSTS_DIR = join(process.cwd(), 'source', '_posts'); +const POSTS_DIR = join(process.cwd(), 'posts'); const CRC32_TABLE = new Uint32Array(256); diff --git a/src/lib/posts.ts b/src/lib/posts.ts index 9b0b842..bb08fea 100644 --- a/src/lib/posts.ts +++ b/src/lib/posts.ts @@ -18,7 +18,7 @@ export type BlogPost = MarkdownModule & { href: string; }; -const modules = import.meta.glob('/source/_posts/**/*.md', { eager: true }); +const modules = import.meta.glob('/posts/**/*.md', { eager: true }); function asArray(value: unknown): string[] { if (Array.isArray(value)) return value.map(String).filter(Boolean); diff --git a/src/pages/shuoshuo.astro b/src/pages/shuoshuo.astro index 5e89def..04bf33b 100644 --- a/src/pages/shuoshuo.astro +++ b/src/pages/shuoshuo.astro @@ -1,9 +1,10 @@ --- import BaseLayout from '@/layouts/BaseLayout.astro'; import PageHeaderCard from '@/components/PageHeaderCard.astro'; -import { Content } from '../../source/shuoshuo/index.md'; +import TwikooComments from '@/components/TwikooComments.astro'; const title = '说说'; +const twikooEnvId = 'https://comment.biss.click'; --- @@ -21,7 +22,9 @@ const title = '说说'; })();
- +
+ +