• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Go
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Extremely simple static blog generator

Build Status Docker Cloud Build Status

Underblog

An extremely simple, fast static blog generator.

Deploy to Netlify

Deploy to Netlify

Install locally

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.

Live preview

Run underblog in watch mode:

underblog -watch

Then go to http://localhost:8080/. Changing markdown files will automatically re-generate the site.

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

More Repositories

1

castlemacs

Modern, minimalist Emacs for macOS ⌘
Emacs Lisp
330
star
2

quickref.dev

Quickref.dev community sources
Makefile
117
star
3

emacs-dotfiles

My Emacs config
Emacs Lisp
115
star
4

support-emacs-community-devs

Ways to support Emacs community developers
48
star
5

emacscast.org

Podcast about Emacs
HTML
36
star
6

develop.re_deprecated

Develop.re social link aggregation (fork of Lobsters)
Ruby
26
star
7

vscode-dnts

dayNightThemeSwitcher: VS Code extension for quick switching between two themes
TypeScript
14
star
8

degas.js

degas.js
JavaScript
12
star
9

small_os_kernel

Assembly
7
star
10

textpod

Extremely simple note-taking app inspired by "One Big Text File"
Rust
5
star
11

MPI-leader-election

Leader election protocols implementation
C++
5
star
12

degas

Prototype of a decentralized evolutionary computation framework in Clojure and ClojureScript
Clojure
4
star
13

rakhim.org

Personal blog and website
HTML
4
star
14

MPI-life

Game of Life on MPI
C++
4
star
15

freetonik.github.io

rakh.im personal blog
HTML
4
star
16

Travertine

A light theme with minimal amount of highlighting for Sublime Text and TextMate.
3
star
17

chrome-stop-closing

Stupid thing to prevent Chrome (macOS) from closing all tabs when clicking "close"
HTML
3
star
18

timelessHN

random good posts from HN history
HTML
2
star
19

sage-tutorial-rus

Sage Tutorial (Russian)
JavaScript
2
star
20

js_l1_brain_games-s12

1
star
21

develop.re

Computer Science Dictionary
CSS
1
star
22

LCS-tableau-cilk

LCS using Cilk
1
star
23

exotext

Plain blogging platform
TypeScript
1
star
24

.doom.d

My Doom Emacs config
Emacs Lisp
1
star
25

monalisa

Pixel regression
C++
1
star
26

homebrew-tap

Brew tap for underblog
Ruby
1
star