jekyll-vitepress-theme 1.11.0 → 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: 31b1b2c1994a774599c9b5612781ac138dc561291572b97a4a2d3a96530618a6
4
- data.tar.gz: 85fc67f3109b3e0c8a0964a98604c219c7fb418b4482580802aae6bc056f5adb
3
+ metadata.gz: 941eba24aff121520a234e7672392da0212ef8571ffe1c0c5d7c7d2446f2cd8c
4
+ data.tar.gz: ed5ea5861a5c1af7bf26fad4e79d8bdb3ca8fb1427cf67771760e34a5a9f0c97
5
5
  SHA512:
6
- metadata.gz: '099a79e03be5ea69bf4a6d60f5ec0d9c567439f54b75e777f00d2199fc8ca055b3a15bb9d751993f6544b6d2e363ef0d0615adb5d09b8965fa04b7a1cbcf0b9b'
7
- data.tar.gz: 5b527894fd9d9a99c5e2521cc9c40aea76507136fa7125915ad10347c503b0bd9570e9d5ba4287d9b975541deac4c3e784141c59e555806fde0a15a43684a13d
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
- if (!link) {
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
- if (event.detail && typeof event.detail.visit === 'function' && event.detail.response) {
2325
- event.detail.visit(event.detail.response);
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
  }
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module VitePressTheme
3
- VERSION = "1.11.0".freeze
3
+ VERSION = "1.11.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-vitepress-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carmine Paolino
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  - !ruby/object:Gem::Version
207
207
  version: '0'
208
208
  requirements: []
209
- rubygems_version: 3.6.9
209
+ rubygems_version: 4.0.20
210
210
  specification_version: 4
211
211
  summary: A polished, SEO-ready VitePress-style documentation theme for Jekyll.
212
212
  test_files: []