Crates.io | orestaty |
lib.rs | orestaty |
version | 1.0.0 |
source | src |
created_at | 2024-06-17 11:35:54.067719 |
updated_at | 2024-08-29 12:04:23.806241 |
description | HTML-centered handlebars-based static site generator |
homepage | |
repository | https://github.com/InfiniteCoder01/OreStaty/ |
max_upload_size | |
id | 1274353 |
size | 81,098 |
OreStaty - HTML-centered handlebars-based static site generator
Look at main.rs to see how you can use OreStaty as a library in your Rust projects
Subcommands:
Only "src" directory is mandatory. All files in it are gonna be built (.html/.htm/.hbs - handlebars, .md/.markdown - markdown + handlebars, .css/.scss/.sass - SASS) All files in "static" directory are gonna be copied to output directory In "plugins" directory you can put:
example_percent
, not example.percent
. Also, in Markdown you might need to escape quotes in string params)All files in plugins directory get scope. For example, plugins/theme/template.html will be registered as Handlebars template with name theme.template
"plugins" is a load path for SASS (if you put bulma-css into this directory, you can import it with @import bulma/bulma
).
All files/directories showcased in this example of a directory tree:
project_directory
├─src
│ ├─index.html
│ ├─page.md
│ └─global.scss
│
├─static
│ ├─image.png
│ └─robots.txt
│
├─plugins
│ ├─example.rhai
│ └─bulma
│ ├─css
│ ├─sass
│ ├─versions
│ ├─bulma.scss
│ ├─LICENSE
│ ├─package.json
│ └─README.md
│
└─dist (auto generated)
You can configure your site in config.toml Here is an example showcasing all possible config options:
default_template = "template"
default_markdown_template = "template"
code_highlight_theme = "InspiredGitHub"
Some stuff to do: