介绍

Nov 1, 2025 guide

Astro Friday

npm version npm downloads bundle size codecov license JSDocs Ask DeepWiki

一个以内容为核心的 Astro 集成,支持标签和系列功能。

你可以在 这里 找到源代码。

特性

使用方法

bash
npm install astro-friday
# or
pnpm add astro-friday
# or
yarn add astro-friday
ts
import friday from 'astro-friday'
import { defineConfig } from 'astro/config'

export default defineConfig({
  integrations: [
    friday({
      collections: {
        blog: {
          glob: {
            pattern: '**/*.md',
            base: './src/contents/blog',
          },
        },
      },
    }),
  ],
})
ts
import collection from 'virtual:astro-friday-collection'

export const collections = collection()

现在, 你可以启动服务了。

更多设置可以在 这里 找到。

路线图

致谢