middleman-vcs-time
Provides means to look up the last-modified times of Middleman sitemap resources according to version control. Supports Git with a fallback to filesystem metadata.
Installation
Add to your Gemfile:
gem 'middleman-vcs-time'and run bundle install.
Usage
Activate the extension in config.rb:
activate :vcs_timeGet the modification time of e.g. the current page:
current_page.mtime # => 2014-01-20 17:31:50 -0800