module Jekyll class RenderGitVerTag < Liquid::Tag def initialize(tag_name, text, tokens) super end def render(context) `git rev-parse HEAD`.strip end end end Liquid::Template.register_tag('git_rev', Jekyll::RenderGitVerTag)