Skip to content
red – static site generator
HTML Makefile CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
template
.gitignore
LICENSE
Makefile
README.md

README.md

red – static site generator

This is really just a makefile for turning Markdown and Sass into HTML and CSS to produce a simple static blog. There are no scripts or binaries.

Go to https://cosine.blue/red/ to see the result.

A brief summary of the Makefile is this:

src/*.md         →  *.html
src/posts/*.md   →  *.html
src/main.sass    →  main.css

src/header.html     Prepended to every page
src/footer.html     Appended to every page

Posts are automatically listed in a section appended to the index page (src/index.md → index.html). The list is sorted alphabetically, so if you name your posts in the form YYYY-MM-DD-*.md, they will be listed in chronological order.

A few similar tools I've seen are bake, pdsite, and tundra.sh.

Dependencies

GNU Make is required. To build the HTML pages, you need Pandoc. To build the style sheet, you need a Sass preprocessor such as sassc (edit Makefile to use another implementation).

Usage

Edit and create files within the src/ directory to determine the site's content. Then build:

make

You can enter

make clean

to remove all the files that were generated by make.

You can’t perform that action at this time.