mirror of
https://github.com/cotes2020/chirpy-starter.git
synced 2025-04-11 07:03:27 +10:00
Compare commits
3 Commits
df4e70f0a2
...
74b68a931b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
74b68a931b | ||
![]() |
aa0fd48ad0 | ||
![]() |
0b5185aaea |
2
Gemfile
2
Gemfile
@ -2,7 +2,7 @@
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "jekyll-theme-chirpy", "~> 7.2", ">= 7.2.1"
|
||||
gem "jekyll-theme-chirpy", "~> 7.2", ">= 7.2.2"
|
||||
|
||||
gem "html-proofer", "~> 5.0", group: :test
|
||||
|
||||
|
@ -212,7 +212,8 @@ exclude:
|
||||
- tools
|
||||
- README.md
|
||||
- LICENSE
|
||||
- "*.js"
|
||||
- purgecss.js
|
||||
- rollup.config.js
|
||||
- "package*.json"
|
||||
|
||||
jekyll-archives:
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
Jekyll::Hooks.register :posts, :post_init do |post|
|
||||
|
||||
commit_num = `git rev-list --count HEAD "#{ post.path }"`
|
||||
commit_num = `git rev-list --count HEAD "#{ post.path }"`.strip
|
||||
|
||||
if commit_num.to_i > 1
|
||||
lastmod_date = `git log -1 --pretty="%ad" --date=iso "#{ post.path }"`
|
||||
lastmod_date = `git log -1 --pretty="%ad" --date=iso "#{ post.path }"`.strip
|
||||
post.data['last_modified_at'] = lastmod_date
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user