#static-site-generator #markdown #content #static-website #configuration #themes #template

app quickstatic

First static site generator build for Djot. Optimized for the actual content and not the themes or bells and wistle of the Static site generator

7 releases

0.1.10 Mar 25, 2024
0.1.9 Mar 25, 2024

#27 in Template engine

Download history 360/week @ 2024-03-12 386/week @ 2024-03-19 192/week @ 2024-03-26 9/week @ 2024-04-02

745 downloads per month

MIT/Apache

35KB
713 lines

QuickStatic 🚀🦀🔥

The First static site generator build specifically for Djot (A more powerful but strict Markdown dialect)

A fast static site generator written in Rust 🦀🚀. A QuickStatic site should show the content first, and hide themes or configuration away. We spend more time writing content than editing website templates and configs.

We should lean into features in markdown, such as directives and custom attributes, for adding features and components to markdow, instead of supporting MDX.

Installation

cargo install quickstatic

Priorities

  • Simplicity
  • Stability (Few features, and should not change very much)
  • Content first.
  • Super flexible markdown, via extended markdown specifications.
  • Never support MDX (React in markdown). Instead, depend on markdown directives and the markdown attributes extended spec.
  • No asset management or SCSS or LESS or any other automated transpiler support.
  • Build on top of shopify liquid templates.
  • Prioritize productivity

QuickStatic generates static websites, and focuses on doing that in a flexible and fast way.

Basic usage

Quickstatic themes should be under _quickstatic/themes/ directory.

Quickstatic public or build directory is quickstatic/public

Everything in the root directory gets copied into the output directory in that order, while markdown files are compiled to html files. Anything with a .liquid extension is executed as a template and the .liquid extension striped.

Eg sitemap.xml.liquid would be evaluated and become sitemap.xml

Build site

quickstatic build

Watch site for changes and continue rebuilding

quickstatic serve

Themes and Templates

QuickStatic themes can be written using the shopify liquid templating language. You can learn more about it here https://github.com/Shopify/liquid/wiki/Liquid-for-Designers

To use any given template file for a particular page, simply reference the template file from the frontmatter. Eg:

---
title: Page title
layout: themeName/blog/index.liquid
---

Page Content.

This is flexible, and allows you reference multiple themes from one QuickStatic site. All themes exist in the _quickstatic/themes/ folder. Your QuickStatic site comes with a default theme named default.

NOTE

  • Licenced under the MIT License.

Dependencies

~41–55MB
~1M SLoC