Alcove CMS
Ru

Alcove CMS

A site made of plain files

Alcove is a small CMS written in Go. Pages are YAML files, templates are plain HTML, and SQL is there when content lives in a database. One binary builds what can be static and serves the rest.

Quick start Read the documentation

An arched alcove in a panelled library, with a framed landscape above a writing desk

In short

No admin panel, no theme engine, no plugins. A folder of files and one program that turns it into a website.

  1. (I)

    Files, not a back office

    A page is a YAML file and a template is an HTML file. The site lives in git, and a diff shows what changed.

  2. (II)

    Static unless it must be live

    Pages are written to plain files at build time. A page that shows a query result is rendered when it is asked for, with an optional cache.

  3. (III)

    Checked before it ships

    Every build starts with a full check. A broken page stops the build, and the site you serve stays as it was.

A long enfilade of rooms with gilt-framed paintings

Anatomy

A page and the alcove it shows:

content/pages/hello.yaml
  slug: hello
  title: Hello
  alcove: house
  nooks:
    main:
      - alcove: greeting

content/alcoves/greeting/blueprint.html
  <h1>{{ page.title }}</h1>

Four words to learn

  1. (I)

    Page

    A YAML file. It names a layout and the alcoves for each nook.

  2. (II)

    Layout

    An alcove whose template is the whole document, with nooks to fill.

  3. (III)

    Alcove

    A folder with a template and rows from YAML or from SQL.

  4. (IV)

    Tile

    The HTML for one row, picked by a condition.

Start with pages

Quick start

A site in three steps

Alcove is one Go program with no other runtime. SQLite is built in.

  1. (I)

    Build the binary

    In the Alcove source folder, with Go 1.27:

    go build -o alcove .
  2. (II)

    Write a page and its template

    mysite/content/pages/index.yaml

    slug: ""
    title: Hello
    alcove: hello

    mysite/content/alcoves/hello/blueprint.html

    <!DOCTYPE html>
    <title>{{ page.title }}</title>
    <h1>{{ page.title }}, world</h1>
  3. (III)

    Run it

    ./alcove -dir mysite/content -port 8080

    Open http://localhost:8080. Edit a file and the site rebuilds by itself.

The documentation

Every section of the documentation ends with a live demo, running on this server

The source is shown next to what it renders: a catalogue filtered by the address, a guestbook, a word counter, a guest account and an RSS feed.

Open the documentation

Five parts of the documentation