Skip to content

Repository files navigation

木漏れ日 / komorebi-theme

一个基于 Astro 的博客主题,注重轻盈排版、安静阅读与持续写作。

要求 Astro 6 和 Node 22.12.0 或更高版本。

快速开始

npm create komorebi

脚手架会通过交互式向导引导你完成初始配置。详见快速开始

手动安装

终端执行:

npm i astro@^6 komorebi-theme

astro.config.ts:

import { defineConfig } from 'astro/config';
import komorebi from 'komorebi-theme';

export default defineConfig({
  site: 'https://your-domain.com',
  integrations: [komorebi()],
});

komorebi.config.ts:

import { defineConfig } from 'komorebi-theme';

export default defineConfig({
  title: '我的博客',
});

src/content.config.ts:

import { defineCollection } from 'astro:content';
import { blogConfig, specialConfig } from 'komorebi-theme/collections';

export const collections = {
  blog: defineCollection(blogConfig()),
  special: defineCollection(specialConfig()),
};

文档

完整文档请访问 Komorebi Docs

License

MIT

About

木漏れ日 Blog 主题

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages