smolblog

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 8 Imported by: 0

README

smolblog

The tiniest site generator I could think of.

The Idea

A static site generator that is driven from a JSON file instead of a database. The templates are rendered using Go's stdlib templates, which some people don't like, but is entirely flexible and requires no external dependency. The hiearchy of args passed to a template is rather flat, so nothing too obscure can be done: arguments are a single level map, and pages are a single level array.

Most of the binary is a wrapper around existing Go functionality, but the idea is that if you can produce the JSON, this can do the rest.

Reuseable Templates

Static Assets

TODO's

  • MVP that renders my existing site (jamesholdren.com)
  • Status bar or something
  • [-] Support for static assets (copy from one spot to another)
  • [-] Post processors? (Support for CSS/JS minification)
  • Helper functions

Documentation

Overview

Smolblog generates a static site from a JSON manifest.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL