Avoid layouts on sass
This commit is contained in:
parent
3b847696ff
commit
0788ebce15
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ module Middleman
|
|||
end
|
||||
|
||||
# Certain output file types don't use layouts
|
||||
needs_layout = !%w(.js .json .css .txt).include?(extension)
|
||||
needs_layout = !%w(.js .json .css .txt).include?(File.extname(path))
|
||||
|
||||
# If we need a layout and have a layout, use it
|
||||
if needs_layout && layout_path = fetch_layout(engine, opts)
|
||||
|
|
Loading…
Reference in a new issue