Skip to content

Introducing Blog for Vite ​

The BinaryNoir detective beside the words "Vite plugin: Blog for Vite"

@binarynoir/vite-plugin-blog adds a Markdown blog to a site built with plain Vite. If your site runs on VitePress, our Blog plugin is still the one to use. This one is for everyone else.

What you get ​

  • Posts in your own page shell. Each post is a plain HTML page made from a template you write, so it matches the rest of your site.
  • Safe under a strict Content Security Policy. No inline scripts or styles, and code is highlighted at build time.
  • Broken posts fail the build, with the file and line: a bad date, a missing alt text, a dead link.
  • Search with no server, plus topic pages, pagination, feeds, a sitemap and an announcement banner.

Get started ​

sh
npm install --save-dev @binarynoir/vite-plugin-blog

The plugin page shows the setup, and the README covers every option.