Crates.io | quickstatic |
lib.rs | quickstatic |
version | 0.1.11 |
source | src |
created_at | 2024-03-13 22:21:47.849562 |
updated_at | 2024-05-16 10:48:00.415455 |
description | First static site generator build for [Djot](https://djot.net). Optimized for the actual content and not the themes or bells and wistle of the Static site generator |
homepage | |
repository | |
max_upload_size | |
id | 1172594 |
size | 121,862 |
The first and fast static site generator built in Rust specifically for Djot (a more powerful but strict markdown dialect).
A QuickStatic site should show the content first, and hide themes or configuration details. 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 markdown, instead of supporting MDX. QuickStatic generates static websites and focuses on doing that in a flexible and fast way. This project prioritizes the following tenets:
QuickStatic can be installed using the cargo
command below (if you don't have Rust Cargo installed already, you should read the Cargo Installation Guide).
cargo install quickstatic
_quickstatic/themes/
directory.quickstatic/public
..liquid
extension is executed as a template and the .liquid
extension is striped. For example, sitemap.xml.liquid
would be evaluated and become sitemap.xml
.To build the site, kindly run the command below:
quickstatic build
To watch for changes and continuously rebuild the site, kindly run the command below:
quickstatic serve
QuickStatic themes can be written using the Shopify liquid templating language. To use any given template file for a particular page, simply reference the template file from the frontmatter. For example:
---
title: Page title
layout: themeName/blog/index.liquid
---
Page Content.
This is flexible and allows you to reference multiple themes from one QuickStatic site.
[!TIP]
All themes exist in the
_quickstatic/themes/
folder and your QuickStatic site comes with a default theme nameddefault
.
Fork the repository (learn how to do this).
Clone the forked repository like so:
git clone https://github.com/<your username>/quickstatic.git && cd quickstatic
Install the required dependencies and configurations.
Create a new branch like so:
git checkout -b <new-branch-name>
Make your change(s), add tests, and ensure the tests still pass.
Push your commit(s) to your fork and create a pull request (learn how to do this).
Well done! Someone will attend to your pull request, provide some feedback, or merge it.
This repository is published under the MIT license.