Build doesn't take my alternate layouts

15 views
Skip to first unread message

Mathieu Vo-Quang

unread,
Oct 5, 2011, 12:10:02 PM10/5/11
to middleman-users
Hi all,
In my config.rb file, I have the following:
page "/en/*", :layout => :layout_en

So every page within the /en/ directory uses a different layout,
layout_en.html, than the default layout.haml

Everything works fine when previewing, but when I build my project,
all generated files use the alternate layout only.

I've tried
page "/en/*", :layout => :layout_en
and
page "/en/*", :layout => "layout_en"

Thanks
Matt
Reply all
Reply to author
Forward
0 new messages