mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 17:28:29 -05:00
Enable strict (or lax) liquid parsing.
Insert liquid: error_mode: strict # or lax or warn in _config.yml to change the error mode.
This commit is contained in:
@@ -55,6 +55,10 @@ module Jekyll
|
||||
"verbose" => false,
|
||||
"defaults" => [],
|
||||
|
||||
"liquid" => {
|
||||
"error_mode" => "warn"
|
||||
},
|
||||
|
||||
"rdiscount" => {
|
||||
"extensions" => []
|
||||
},
|
||||
|
||||
@@ -5,6 +5,7 @@ module Jekyll
|
||||
class LiquidRenderer
|
||||
def initialize(site)
|
||||
@site = site
|
||||
Liquid::Template.error_mode = @site.config["liquid"]["error_mode"].to_sym
|
||||
reset
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user