Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _plugins/lastMod_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def render(context)
contents = super
content = Liquid::Template.parse(contents).render context
# aim for YYYY-MM-DD format https://www.google.com/sitemaps/protocol.html#lastmoddef
'git log -1 --format=%cd --date=short #{content}'.strip
`git log -1 --format=%cd --date=short #{content}`.strip
end
end

Expand Down