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

Latest commit

 

History

History
53 lines (35 loc) · 1.93 KB

File metadata and controls

53 lines (35 loc) · 1.93 KB

⚠️ 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.