feat(krile): reorder plugin pipelines (0.5.2)

master
ana 11 months ago
parent 01ab52c617
commit d2436dd355
  1. 2
      Cargo.lock
  2. 2
      LICENSE
  3. 9
      krile/CHANGELOG.md
  4. 2
      krile/Cargo.toml
  5. 9
      krile/src/main.rs

2
Cargo.lock generated

@ -424,7 +424,7 @@ dependencies = [
[[package]]
name = "krile"
version = "0.5.1"
version = "0.5.2"
dependencies = [
"argh",
"minifemme",

@ -2,7 +2,7 @@ The Prosperity Public License 2.0.0
Contributor: Anastasie H.
Source Code: https://github.com/fmoko/shtola
Source Code: https://git.mokou.org/mokou/shtola
This license lets you use and share this software for free,
with a trial-length time limit on commercial use. Specifically:

@ -1,5 +1,14 @@
# Changelog
## [0.5.2] - 2021-11-09
### Changed
- The Markdown processing plugin now runs before the Layout processing
plugin. This is because rendering half-Markdown, half-HTML pages will
break something at some point, so it's best to render layouts when they're
entirely HTML.
## [0.5.1] - 2021-11-03
### Added

@ -1,7 +1,7 @@
[package]
name = "krile"
description = "A static site generator"
version = "0.5.1"
version = "0.5.2"
license-file = "LICENSE"
edition = "2018"
repository = "https://git.sr.ht/~ana/shtola/tree/master/item/krile"

@ -6,7 +6,7 @@ use shtola::log::*;
use shtola::plugins;
use shtola::Shtola;
const VERSION: &'static str = "0.5.0";
const VERSION: &'static str = "0.5.2";
#[derive(FromArgs)]
/// A static site generator.
@ -69,12 +69,13 @@ fn main() {
if potential_krileignore.exists() {
sh.source_ignores(&potential_krileignore).unwrap();
}
if !args.ignored_plugins.contains(&"tera_layouts".to_string()) {
sh.register(plugins::tera_layouts::plugin());
}
if !args.ignored_plugins.contains(&"markdown".to_string()) {
sh.register(plugins::markdown::plugin());
}
if !args.ignored_plugins.contains(&"tera_layouts".to_string()) {
sh.register(plugins::tera_layouts::plugin());
}
sh.build().unwrap();
info!(
"Finished build in {:?}",

Loading…
Cancel
Save