mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Allow caching in unsafe mode, but disable in safe mode.
This commit is contained in:
@@ -38,10 +38,14 @@ module Jekyll
|
||||
)
|
||||
end
|
||||
|
||||
def allow_caching?
|
||||
!@config["safe"]
|
||||
end
|
||||
|
||||
def sass_configs(content = "")
|
||||
sass_build_configuration_options({
|
||||
"syntax" => syntax_type_of_content(content),
|
||||
"cache" => false,
|
||||
"cache" => allow_caching?,
|
||||
"load_paths" => [sass_dir_relative_to_site_source]
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user