Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Use version control to determine last-modified times of Middleman resources.

License

Notifications You must be signed in to change notification settings

AndrewKvalheim/middleman-vcs-time

Repository files navigation

middleman-vcs-time

Gem Version Build Status

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_time

Get the modification time of e.g. the current page:

current_page.mtime # => 2014-01-20 17:31:50 -0800

About

Use version control to determine last-modified times of Middleman resources.

Topics

Resources

License

Stars

Watchers

Forks