I’m running in circles trying to figure out where I went wrong. I’m moving layouts, stylesheets and the like from source/* to source/assets/*.
I’ve made the changes in config.rb
config[:layouts_dir] = 'assets/layouts'
config[:partials_dir] = 'assets/layouts/partials'
config[:css_dir] = 'assets/stylesheets'
When I’m running middleman in development mode middleman
everything works fine. However, once I build, middleman build
errors crop up. For some reason middleman is trying to build the contents of assets/layouts
I get the following:
Tried to render a layout (calls yield) at /src/project12/source/assets/resources/layouts/layout.erb like it was a template. Non-default layouts need to be in source/assets/layouts
Everything builds as expected, the layouts in ‘assets/layouts’ are used to build the site.