middleman / middleman-blog

Blog Engine Extension for Middleman
https://middlemanapp.com
MIT License
325 stars 179 forks source link

Recognize :_auto_layout value for layout #296

Closed mojavelinux closed 8 years ago

mojavelinux commented 8 years ago

Middleman core allows the layout to be set to :_auto_layout, in which case it resolves the layout automatically. I think the blog extension should recognize :_auto_layout as an alias for nil.

This change allows an extension like Middleman AsciiDoc to work consistently without knowing whether it's dealing with a blog post or normal page.

mojavelinux commented 8 years ago

:+1: Thanks @tdreyno!