Crates.io | minipub |
lib.rs | minipub |
version | 0.1.0 |
source | src |
created_at | 2023-12-11 08:20:23.511245 |
updated_at | 2023-12-11 08:20:23.511245 |
description | Small static site generator using Jinja templates |
homepage | |
repository | https://codeberg.org/rudolph/minipub |
max_upload_size | |
id | 1064839 |
size | 44,542 |
Publish static sites using MiniPub. It uses Jinja templates, has built-in web server for development and renders Markdown. Publishes sites using rsync. All written in Rust.
cargo install minipub
mkdir example
cd example
minipub init
minipub serve
You can now open http://localhost:8000 in a webbrowser and see the result. Refresh the page every time you make changes.
The following directories have been created by the init
command:
base.html
to get you started..html
files and should extend one of you
templates.minipub build
can be used to generate all web pages in a build
directory.
To publish your site copy the contents of this directory to the destination and
also do not forget to copy all your assets.
To do both in one go and copy the files using rsync
use minipub publish
.