关于这里
{{ site.author_bio || site.site_desc }}
diff --git a/frontend/src/customCss.js b/frontend/src/customCss.js
new file mode 100644
index 0000000..b198dc8
--- /dev/null
+++ b/frontend/src/customCss.js
@@ -0,0 +1,80 @@
+import { watch } from 'vue'
+import { site } from './site'
+
+// 站主自定义 CSS 的注入管线。
+//
+// 两个 也逃不出去,因此不需要引入 CSS 清洗库。
+// (能写这两段的只有管理员,本身也不是权限边界。)
+
+const GLOBAL_ID = 'one-css-global'
+const SECTION_ID = 'one-css-section'
+
+// 路由名 → 分区 id。tag 归到 tags;not-found / 其他一律只吃 global。
+const ROUTE_SECTION = {
+ home: 'home',
+ post: 'post',
+ archive: 'archive',
+ tags: 'tags',
+ tag: 'tags',
+ projects: 'projects',
+ about: 'about'
+}
+
+function ensureStyle(id) {
+ if (typeof document === 'undefined') return null
+ // 先按 id 找再建:dev 热更新会重复执行模块,不查会堆出一串重复
+
+
+
+
+READ 0%
+
+
+
+
+
+
+
+
+ 余白
+
+
+
+
+
+