Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Latest commit

 

History

53 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

⚠️ This repo has moved to codeberg.org/enra/pichu.


pichu

CI crates.io docs.rs License

The static site generator designed to evolve with your needs.

Quickstart

Pichu provides the building blocks to build your own static site generator. Parse a directory of Markdown files, including typed frontmatter, and render them individuall and in a collection using your favorite template engine.

Batteries included, but easily swappable: If you've outgrown the default Markdown implementation, you're encouraged to copy-paste the implementation and plug it in instead. Or bring your own!

pichu::glob("content/blog/*.md")?
    .parse_markdown::<Blogpost>()?
    .render_each(render_blog_post, |post| format!("dist/blog/{}/index.html", post.basename))?
    .render_all(render_blog, "dist/blog/index.html")?;

pichu::render_sass("assets/main.scss", "dist/main.css")?;

pichu::copy_dir("static/", "dist/")?;

Examples

Features

License

Licensed under either of

at your option.

关于

The static site generator designed to evolve with your needs.

Resources

Stars

4 stars

关注者

0 watching

复刻s

发布

贡献者

Languages