Skip to content
A minimalist static site generator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates Remove Apr 28, 2019
LICENSE Create LICENSE Feb 18, 2019 Update Apr 28, 2019


Build Status Go Report Card

A minimalist static site generator.


go get


pt -base-url *.md

Front matter

title = "Hello, world!"
date = 2019-02-11

Each page can contain a TOML front matter. It must be placed at the top within +++ delimiters.

Valid variables are:

  • title: the content title
  • date: the content creation date
  • exclude: if true, the page won't be included in .Pages


Just add your CSS in the <head>. For example:

body {
  line-height: 1.5;
  max-width: 40em;
  margin: auto;
  padding: 1em;


First, get the page and RSS feed templates:

curl -L \
  | tar xz --strip-components=1 pt-master/templates

Now let's create our index page:

cat > << EOF
title = "Jane Doe"
date = 2019-01-01
exclude = true

Hello, _world_!

This is an example **paragraph**.

And a post:

cat > << EOF
title = "My first post"
date = 2019-04-20

This is an example post.

Nothing much to see.

Finally, build:

pt *.md
You can’t perform that action at this time.