Commit d2436dd3 authored by anastasie's avatar anastasie 🦌
Browse files

feat(krile): reorder plugin pipelines (0.5.2)

parent 01ab52c6
......@@ -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:
......
# 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
......
[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 {:?}",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment