jekyll-vitepress-theme 1.10.1 → 1.11.1
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: 941eba24aff121520a234e7672392da0212ef8571ffe1c0c5d7c7d2446f2cd8c
|
|
4
|
+
data.tar.gz: ed5ea5861a5c1af7bf26fad4e79d8bdb3ca8fb1427cf67771760e34a5a9f0c97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0a4fbd1e5df459f9932e3d3c92e5dfedfc13b1087713c5112c2acf2dfa716b63b84950a46d7889a973791c181f7095cc3de15a2205413b4fef4708e07248f95
|
|
7
|
+
data.tar.gz: 1b202d59f4377fbdfe7898c5a2aa41a6c76b1e409037f05a928211e2dee7ad9b0141374bb24d3408634a1fac4a00f0b5e68a37a439de01bed4ac51dfc9eacafd
|
|
@@ -2088,7 +2088,8 @@
|
|
|
2088
2088
|
var pendingDocFrameHash = null;
|
|
2089
2089
|
|
|
2090
2090
|
function shouldTargetDocFrameLink(link) {
|
|
2091
|
-
|
|
2091
|
+
// Pages without a sidebar (the home page) have no content frame to target.
|
|
2092
|
+
if (!link || !document.getElementById('vp-content-frame')) {
|
|
2092
2093
|
return false;
|
|
2093
2094
|
}
|
|
2094
2095
|
|
|
@@ -2321,11 +2322,8 @@
|
|
|
2321
2322
|
|
|
2322
2323
|
event.preventDefault();
|
|
2323
2324
|
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
return;
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2325
|
+
// Load the page in full. A Turbo Drive visit would swap the body while
|
|
2326
|
+
// this script's listeners stay bound to the old nav and sidebar.
|
|
2329
2327
|
if (event.detail && event.detail.response && event.detail.response.url) {
|
|
2330
2328
|
window.location.href = event.detail.response.url;
|
|
2331
2329
|
}
|
|
@@ -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.1
|
|
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:
|
|
212
|
-
signing_key:
|
|
209
|
+
rubygems_version: 4.0.20
|
|
213
210
|
specification_version: 4
|
|
214
211
|
summary: A polished, SEO-ready VitePress-style documentation theme for Jekyll.
|
|
215
212
|
test_files: []
|