← Back to Site

bim

A Content-First Static Site Generator


Philosophy


Quick Start

# Install
cargo install bim

# Build
bimbuild

# Serve
bimserve --watch

Directory Structure

my-site/
  index.md        # Homepage
  nav.md          # Navigation
  blog/           # Date-sorted posts
  notes/          # Hierarchical garden
  snippets/       # Code files
  images/         # Processed images
  static/         # Copied as-is
  layouts/        # HTML templates

Collections

CollectionStructureFeatures
blogflatRSS, dates
noteshierarchicalauto-index
snippetsflatsyntax highlight
slidesflatno backlinks

Tags & Contexts

This is about [#rust](/tags/rust/) programming.

It applies to [@linux](/contexts/linux/) systems.

Auto-generates:


Backlinks

Link from anywhere...

See [my other post](/blog/post/)

...backlinks appear automatically!


Directives

Dynamic content in Markdown:

## Recent Posts



Layouts

Simple placeholder substitution:

<title>{{title}}</title>
<main>{{content}}</main>

No template logic. Keep it simple.


Image Processing


Built With


Get Started

cargo install bim
mkdir my-site && cd my-site
echo "# Hello" > index.md
bimserve

Links


Questions?