Hi,
can I configure Middleman to expect layout/ somewhere else than in source/?
It’s right in the middle of my articles now (they are index.html files within folders with the slug as name), and that’s annoying.
Hi,
can I configure Middleman to expect layout/ somewhere else than in source/?
It’s right in the middle of my articles now (they are index.html files within folders with the slug as name), and that’s annoying.
I don’t know, you could try to change config.rb
accordingly, but this is potentially a source of odd bugs. I’m not sure why is this a problem, since usually source
has more subfolders, not only layouts
but (in my case): css
, fonts
, images
, js
, localizable
(in case of multilanguage projects), partials
(I still prefer to have them in subfolder). I’m pretty sure when your project grows, you will have more subfolders.
You can change the layout folder by setting config[:layouts_dir]
. Maybe you can do something like this:
config[:layouts_dir] << File.join(root, 'folder name')
But like @komor72 said, this is quite likely going to cause problems.