refactor: only index md files

This commit is contained in:
2026-02-26 14:14:26 +08:00
parent 34c2f9e346
commit c6889ac65d
2 changed files with 58 additions and 54 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ async function loadDevIndex(): Promise<void> {
if (typeof import.meta !== "undefined" && import.meta.glob) {
try {
// @ts-ignore - 只加载 .csv 和 .md 文件
const modules = import.meta.glob("../../content/**/*.{csv,md}", {
const modules = import.meta.glob("../../content/**/*.md", {
as: "raw",
eager: true,
});