Crate sonata

Source
Expand description

§sonata

The static site generator.

For the minimal directory layout:

.
├── sonata.toml
└── posts
    └── 2024-01-01-hello-world.md

The full configuration:

# my-blog/sonata.toml
title = "sonata"         # The title of the site.

# Default values of the optional fields.
# --------------------------------------
favicon = "favicon.svg"   # The path to the favicon.
out = "out"               # The path to the output directory.
posts = "posts"           # The path to the posts.
public = "public"         # The path to the public directory.
templates = "templates"   # The path to the templates.

# Theme could also be a folder:
#
# - [theme]
#   - index.css (optional)
#   - post.css  (optional)
#   - theme.css (optional)
theme = "theme.css"

§LICENSE

GPL-3.0-only

Modules§

cmd
sonata cli

Structs§

App
The root of the site.
Manifest
Manifest of the site.
Meta
The metadata of the post.
Post
Post layout with is markdown with yaml metadata.
Templates
The default sonata templates.

Constants§

LIVERELOAD_ENDPOINT
The endpoint for livereload
MINIMAL_MANIFEST
The minimal implementation of the manifest.
TEMPLATE_POST
The template of the post.