tyeeman / underblog

Extremely simple static blog generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Docker Cloud Build Status

Underblog

An extremely simple, fast static blog generator.

Install

On MacOS:

brew install freetonik/tap/underblog

Docker:

docker run --rm -it -v /path/to/your/blog:/blog freetonik/underblog

Windows:

Go to releases and download the latest binary marked "windows".

How it works

You only need 4 things:

  1. index.html template for blog's index page.
  2. post.html template for single post.
  3. css/styles.css for CSS styles.
  4. markdown folder.

There is no front-matter. Date and slug are derived from the filename. Title is derived from the first line of markdown file. Make sure the first line starts with #.

Step 1: create the following folder structure:

.
├── css
│   └── styles.css
├── markdown
│   └── YYYY-MM-DD-Slug_1.md
│   └── YYYY-MM-DD-Slug_2.md
│   └── YYYY-MM-DD-Slug_3.md
├── index.html
├── post.html

(See /example)

Step 2: run underblog.

Step 3: Your site is generated in public.

Features

  • NO front matter
  • NO themes
  • NO JavaScript
  • NO tags, categories, taxonomy
  • NO template lookup logic
  • NO plugins
  • NO dependencies

Roadmap

  • derive dates from filenames
  • RSS generation
  • Syntax highlighting for code with Chroma
  • live preview server (?)

Building

In the root repository do:

make build

About

Extremely simple static blog generator

License:MIT License


Languages

Language:Go 84.6%Language:Makefile 7.5%Language:HTML 4.7%Language:Dockerfile 1.9%Language:CSS 1.3%