Sha256: 897a2b0cd095ae95e2f08304428983a1ba4c34ceedc609174a3cd09f11ccb279
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true module Bridgetown module Resource class Base def sitemap_last_modified_at data.last_modified_at || latest_git_commit_date || date end private def latest_git_commit_date date = `git log -1 --pretty="format:%cI" "#{path}"` Time.parse(date) if date.present? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bridgetown-sitemap-1.1.1 | lib/bridgetown/resource/base.rb |