Expand description

Blazing fast dead simple static site generator.

Features

Currently, Cargo doesn’t support binary-only dependencies. As such, these dependencies are behind the bin feature gate, which is enabled by default. When using Blades as a library, they are not necessary, so it is recommended to import blades with default_features = false.

Structs

A wrapper around a str representing path, used to derive Content implementation that acts like an iterator over the path segmets.

Main configuration where all the site settings are set. Razor deserializes it from a given TOML file.

A wrapper around the chrono::NaiveDateTime, used for rendering of dates.

A hash map wrapper that can render fields directly by the hash.

All the information regarding one page

A list of pages properly sorted and linked within. It dereferences to [Page].

A single picture on a page.

Data about where the source of a one particular file is located

All of the site source files

One taxonomical category of the site (e.g. tags, categories).

Enums

A sum of all the types that can be used in a TOML file.

Traits

A structure that can parse Page from binary data. Is typically a deserializer or an enum of deserializers.

Functions

Delete all the pages that were present in the previous render, but not the current one. Then, write all the paths that were rendered to the file filelist

Place assets located in the assets directory or in the assets subdirectory of the theme, if used, into a dedicated subdirectory of the output directory specified in the config (defaults to assets, too).

Load the templates from the directories specified by the config.

Render sitemap, Atom and RSS feeds if enabled in the config.

Type Definitions

A set of all rendered paths. Behind a mutex, so it can be written from multiple threads.

All the classes in all taxonomies one page belongs to.