Skip to content

Commit

Permalink
Merge pull request #603 from Geobert/liquid-with-jekyll-filters
Browse files Browse the repository at this point in the history
feat(liquid-jekyll-filter): activate jekyll filters
  • Loading branch information
epage committed Feb 2, 2019
2 parents e00b389 + 5c7c568 commit f0e8868
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -23,7 +23,7 @@ doc = false

[dependencies]
clap = "2.32"
liquid = "0.18.1"
liquid = { version = "0.18.2", features = ["jekyll-filters"] }
deunicode = "1.0.0"
walkdir = "2.2"
chrono = "0.4"
Expand Down
1 change: 1 addition & 0 deletions src/cobalt_model/template.rs
Expand Up @@ -39,6 +39,7 @@ impl LiquidBuilder {
let highlight = Self::highlight(self.theme)?;
let parser = liquid::ParserBuilder::with_liquid()
.extra_filters()
.jekyll_filters()
.partials(load_partials_from_path(self.includes_dir)?)
.block("highlight", highlight)
.build()?;
Expand Down

0 comments on commit f0e8868

Please sign in to comment.