lib/edit.js
function filterLayout(posts) {
      var reLayout = new RegExp(layout, 'i');

      return posts.filter(function filterPosts(post) {
        return reLayout.test(post.layout);
      });
    }
function filterLayout(posts) {
      var reLayout = new RegExp(layout, 'i');

      return posts.filter(function filterPosts(post) {
        return reLayout.test(post.layout);
      });
    }
function filterLayout ( posts ) { var reLayout = new RegExp ( layout , 'i' ) ; return posts . filter ( function filterPosts ( post ) { return reLayout . test ( post . layout ) ; } ) ; }
filter the posts using a layout if supplied
filter the posts using a layout if supplied