middleman/middleman — pull request #438 by bhollis (2012-05-20 02:26:07+00:00)
Title: Make link_to magical

A few changes to `link_to`:

* You can now reference sitemap paths relative to the current sitemap resource, and `link_to` will do the right thing.
* You can pass `:relative => true` to `link_to` to make it generate a relative URL for sitemap paths instead of an absolute path.
* Or, add `set :relative_links, true` to `config.rb` to default to relative links from `link_to`. You can still turn relative links *off* for a single `link_to` by adding `:relative => false`.

This should fully resolve #368 and #388.