Crates.io | sita |
lib.rs | sita |
version | 0.1.0 |
source | src |
created_at | 2024-05-17 14:47:20.754994 |
updated_at | 2024-05-17 14:47:20.754994 |
description | Sita: static site generator (SSG) for Markdown and HTML |
homepage | |
repository | https://github.com/sixarm/sita-rust-crate/ |
max_upload_size | |
id | 1243365 |
size | 254,026 |
Sita is a static site generator.
Sita aims to be simple for simple needs, and flexible for complex needs.
Sita aims to be simpler than other static site generators, such as Astro, Eleventy, Jekyll, Hugo, Zola, etc.
Contents:
Sita aims to be simple for simple needs:
Sita uses simple default settings to get you up and running.
For example Sita can process one file from Markdown into HTML, without needing any special setup or any custom configuration.
Sita aims to be flexible for complex needs:
Sita uses more capabilities to integrate your work in more ways.
For example Sita can use front matter variables that can be set via HTML, JSON, TOML, YAML, XML, or other options.
Sita is currently being developed:
We welcome help and constructive feedback.
You can open a GitHub issue or contact us at sita@sixarm.com.
Get the Sita help introduction:
sita --help
Create a file example.md
with this text:
hello world
Run Sita with an input file name:
sita --input example.md
The outcome is the file example.html
with this text:
<p>hello world</p>
The --input
option can handle multiple files, or directories, or globs.
Create a file template.html
with this text:
<html>
<body>
{{ content }}
</body>
</html>
Run Sita with a template file name:
sita --input example.md --template template.html
The result is the file example.html
with this text:
<html>
<body>
<p>hello world</p>
</body>
</html>
The --template
option can handle multiple files, or directories, or globs.
Features:
Compile from a typical Markdown file into a typical HTML web page.
Front matter can be written in HTML, JSON, TOML, YAML, XML.
Features that we may add in the future if people want to fund them:
Sections
Pagination
Taxonomies
Feeds
Sitemap
Robots.txt
404 error page
Archive
Sita is being developed to use multiple template engines.
The roadmap is:
Handlebars - because of speed and use by Rust ecosystem.
Liquid - because of popularity with e-commerce developers.
Tera - because of advanced capabilities and pure Rust.
Front matter can use a variety of formats: HTML comments, Markdown comments, JSON, TOML, YAML.
State variables can be set by using front matter as HTML, JSON, TOML, YAML, or command line options.