Fix feed.xml.builder breaking on empty blogs #155

Merged
merged 1 commit into from Sep 17, 2013

Projects

None yet

2 participants

@barraponto
Contributor

No description provided.

@bhollis
Member
bhollis commented Sep 7, 2013

Thanks! But why have a blog if it's empty?

Also, the second guard isn't necessary:

> [][0..5]
 => []
@barraponto
Contributor
  1. The user might start working on the layout and css for a blog-enabled project that doesn't have a post yet.
  2. Writing new blog-enabled templates will require a sample post not to break out-of-the-box.
  3. I bet multi-blogs will find this useful.
@bhollis bhollis merged commit 03af217 into middleman:master Sep 17, 2013

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment