mojombo/jekyll — Issue #453: Option for "layout: default" in _config.yml
Author: pdurbin
Created: 2011-12-15 05:47:17+00:00
State: open

For some of my Jekyll sites I'm always using the same layout for all my pages and posts. It would be nice to be able to specify "layout: default" once in my `_config.yml` and have that layout applied to any file with YAML Front Matter that doesn't have any layout specified explicitly.

I asked a related question on Stack Overflow and answered it with a plugin that seems to work (i.e. I don't have to write "default: layout" over and over) but I'm no Rubyist and it doesn't handle the `_config.yml` part. I called it `_plugins/implicit-layout.rb`:

http://stackoverflow.com/questions/8490528/how-can-i-make-jekyll-use-a-layout-without-specifying-it