jekyll-vitepress-theme 1.10.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31b1b2c1994a774599c9b5612781ac138dc561291572b97a4a2d3a96530618a6
|
|
4
|
+
data.tar.gz: 85fc67f3109b3e0c8a0964a98604c219c7fb418b4482580802aae6bc056f5adb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '099a79e03be5ea69bf4a6d60f5ec0d9c567439f54b75e777f00d2199fc8ca055b3a15bb9d751993f6544b6d2e363ef0d0615adb5d09b8965fa04b7a1cbcf0b9b'
|
|
7
|
+
data.tar.gz: 5b527894fd9d9a99c5e2521cc9c40aea76507136fa7125915ad10347c503b0bd9570e9d5ba4287d9b975541deac4c3e784141c59e555806fde0a15a43684a13d
|
|
@@ -40,6 +40,14 @@ module Jekyll
|
|
|
40
40
|
git_index(site).time_for(source_path) || File.mtime(source_path).utc
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
# The last commit date alone, or nil where Git cannot date the file.
|
|
44
|
+
# For uses such as the sitemap, where a build-time file timestamp
|
|
45
|
+
# would claim a change that never happened.
|
|
46
|
+
def commit_time(site, path)
|
|
47
|
+
source_path = resolved_source_path(site, path)
|
|
48
|
+
source_path && git_index(site).time_for(source_path)
|
|
49
|
+
end
|
|
50
|
+
|
|
43
51
|
def resolved_source_path(site, path)
|
|
44
52
|
return nil unless path
|
|
45
53
|
|
|
@@ -388,7 +388,7 @@ module Jekyll
|
|
|
388
388
|
metadata = item.data['_seo']
|
|
389
389
|
next unless sitemap_candidate?(item, metadata)
|
|
390
390
|
|
|
391
|
-
last_modified = metadata['date_modified']
|
|
391
|
+
last_modified = metadata['date_modified'] || source_modified(item)
|
|
392
392
|
last_modified ||= metadata['date_published'] if posts_document?(item)
|
|
393
393
|
[metadata['canonical_url'], last_modified]
|
|
394
394
|
end
|
|
@@ -408,6 +408,13 @@ module Jekyll
|
|
|
408
408
|
XML
|
|
409
409
|
end
|
|
410
410
|
|
|
411
|
+
# Front matter first, then the last commit that touched the page's
|
|
412
|
+
# source file. Never a build-time file timestamp, which would mark every
|
|
413
|
+
# page as changed on each build.
|
|
414
|
+
def source_modified(item)
|
|
415
|
+
xml_time(item.data['last_updated_at'] || LastUpdated.commit_time(item.site, item.path))
|
|
416
|
+
end
|
|
417
|
+
|
|
411
418
|
def robots_txt(site, config, site_url)
|
|
412
419
|
index = config.fetch('index', true) != false
|
|
413
420
|
lines = ['User-agent: *', index ? 'Allow: /' : 'Disallow: /']
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-vitepress-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carmine Paolino
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: cgi
|
|
@@ -193,7 +192,6 @@ metadata:
|
|
|
193
192
|
documentation_uri: https://jekyll-vitepress.dev
|
|
194
193
|
bug_tracker_uri: https://github.com/crmne/jekyll-vitepress-theme/issues
|
|
195
194
|
funding_uri: https://github.com/sponsors/crmne
|
|
196
|
-
post_install_message:
|
|
197
195
|
rdoc_options: []
|
|
198
196
|
require_paths:
|
|
199
197
|
- lib
|
|
@@ -208,8 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
208
206
|
- !ruby/object:Gem::Version
|
|
209
207
|
version: '0'
|
|
210
208
|
requirements: []
|
|
211
|
-
rubygems_version: 3.
|
|
212
|
-
signing_key:
|
|
209
|
+
rubygems_version: 3.6.9
|
|
213
210
|
specification_version: 4
|
|
214
211
|
summary: A polished, SEO-ready VitePress-style documentation theme for Jekyll.
|
|
215
212
|
test_files: []
|