middleman/middleman-blog — pull request #46 by bhollis (2012-04-30 05:42:27+00:00)
Title: Add a blog.path option

Add a `blog.path` option to make setting all the path options easier. `blog.path` defaults to nil, but if set will be prepended to all the paths you provide (or the defaults) in order to put your blog in a subdirectory. For example, my configs went from:

```ruby
activate :blog do |blog|
blog.permalink = "/blog/:year/:month/:day/:title.html"
blog.sources = "blog/:year-:month-:day-:title.html"
blog.taglink = "/blog/category/:tag.html"
blog.layout = "article"
blog.summary_separator = /()/
blog.summary_length = nil
blog.year_link = "/blog/:year.html"
blog.month_link = "/blog/:year/:month.html"
blog.day_link = "/blog/:year/:month/:day.html"

blog.tag_template = "blog/tag.html"
blog.calendar_template = "blog/calendar.html"
end
```

to:

```ruby
activate :blog do |blog|
blog.path = "blog"
blog.taglink = "/category/:tag.html"
blog.layout = "article"
blog.summary_separator = /()/
blog.summary_length = nil

blog.tag_template = "blog/tag.html"
blog.calendar_template = "blog/calendar.html"
end
```