Skip to main content

Crate zorto_core

Crate zorto_core 

Source
Expand description

Zorto core — the library powering the zorto static site generator.

§Overview

Zorto builds static websites from Markdown content with TOML frontmatter, Tera templates, and optional SCSS compilation. Its distinguishing feature is executable code blocks: fenced blocks marked {python}, {bash}, or {sh} are executed at build time and their output is rendered inline.

§Library usage

The primary entry point for programmatic use is site::Site:

use std::path::Path;
use zorto_core::site::Site;

let root = Path::new("my-site");
let output = root.join("public");
let mut site = Site::load(root, &output, false)?;
site.build()?;

Modules§

cache
config
content
lint
Template linting — opinionated checks for Zorto templates.
markdown
search
Search index generation using SQLite.
shortcodes
site
themes
Built-in themes for Zorto.