jekyll-archives-dir-category 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39b0ef05fc29929a7c57609d539ec8fcf34c73c04e2cef76826c1df4525099ea
4
- data.tar.gz: 4e0e5f70afcf09c9ac93f8b8b22c7261c50b02afeb78a56010cffe41725f3b62
3
+ metadata.gz: 7b303af89b367228b34b4aeafe0bd22ee44d09c07dbdf6cb987d461ed8fcca77
4
+ data.tar.gz: b9b4498c4d8bc456b540e95f1a9c75e5b89f52d367d693ba4dc42e8a0ff658a3
5
5
  SHA512:
6
- metadata.gz: a5696cb3138e9e9334409b162893f6f986297e150efdaf4c0c7d6562960304862f233aea9b340a548029f10e7cbdd3097235bebb6cdeee92e7454cd7509981cf
7
- data.tar.gz: 23f7a4bc8a87c7acb4043149ab94af2a23e74ed48dc2c86950164278584c58e58cdc022c7df427b2b5b073858ebded565c78e609dcff63fb86a45ef6a0b696e9
6
+ metadata.gz: 68235cb9e5649cf5cbce1f8d6e63621e9ea0622992141b1f6037aa92b964d35a747cc6a6774e69dc6a248fc14d3623a5051dd41a3af66ba6ef0cd8f66e3f2de0
7
+ data.tar.gz: 9cb24a2c6adfe47dc1aa69b1028346a79c34638cfedc9074263beadfb66d928f0e7b605d69ec1622a8f06ad0fe2109bb5d17e00f9bbc560ae9860dd18f2beee4
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Archives
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -92,7 +92,13 @@ module Jekyll
92
92
  p.data["category"] = c
93
93
  p.data["categories"] = [c]
94
94
  p.data["category-name"] = cn
95
- p.data["update-time"] = File.mtime(p.path)
95
+ io = IO.popen('git log -1 --pretty="format:%cI" ' + p.path)
96
+ date_str = io.gets
97
+ # printf("post:%s\n", p.path)
98
+ # printf(" pwd :%s", `pwd`)
99
+ # printf(" date:%s\n\n", date_str)
100
+ p.data["update-time"] = date_str
101
+ # printf("Post date:%s\n", `git log -1 --pretty="format:%cI" $p`)
96
102
  # printf(" category:%s\n", c)
97
103
  # printf(" category name:%s\n\n", cn)
98
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-archives-dir-category
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alfred Xing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-19 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll