[][src]Crate blades

Blazing fast dead simple static site generator.

Structs

Config

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

Page

All the information regarding one page

Source

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

Sources

All of the site source files

Taxonomy

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

Templates

Aggregation of all the templets of the site's theme and its template dir.

Enums

Error

All possible ways the site generation can fail.

Functions

cleanup

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

colocate_assets

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).

render_meta

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

Type Definitions

MutSet

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

Result

A convenience wrapper around std Result