修复:启用评论组件

This commit is contained in:
2022-08-13 23:30:56 +08:00
parent 6a3c5bbdd6
commit abd80c6b77
135 changed files with 2234 additions and 128 deletions

View File

@@ -3,10 +3,10 @@ import matter from 'gray-matter'
import fs from 'node:fs/promises'
const articleData = await Promise.all(
glob.sync('./repos/**/*.md', {
glob.sync('./docs/**/*.md', {
onlyFiles: true,
objectMode: true,
ignore: ['./repos/**/index.md', './repos/**/tags.md', './repos/**/archives.md', './repos/**/me.md'], // without !
ignore: ['./docs/**/index.md', './docs/**/tags.md', './docs/**/archives.md', './docs/**/me.md'], // without !
}).map(async (article) => {
const file = matter.read(`${article.path}`)
const { data, path } = file