jekyll-theme-docsteer 1.1.0 → 1.1.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 +4 -4
- data/_includes/head.html +1 -1
- data/_includes/scripts.html +1 -1
- data/_includes/search-modal.html +1 -1
- data/_layouts/default.html +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2ee10acc2404b6708248c369c064fe563d95a4bf5df02a084ce2a299d6de645
|
|
4
|
+
data.tar.gz: fabb696639be506d1ca94c6a02e08581cc59b523e83b46be118a9f01c5c3212b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 296d084e1c436f2aa5f885133e193dc34e5b2331d1bfd9ba7ac571a59dbab94be2cb724564c7a9fbcbd0248e02419116897e317dcca2dcee1e952aa0b9e5d5ac
|
|
7
|
+
data.tar.gz: c65f385b365594482ae3880ab4cbd42bf89f85a7018e2f8e7413c17dd683df9f36ab456d168745f83be5632ab1e49fa27a793247609a3210b813520d7b7ade21
|
data/_includes/head.html
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
{% endif %}
|
|
47
47
|
|
|
48
48
|
{% if cfg.search.enabled %}
|
|
49
|
-
<link rel="preload" as="fetch" href="{{ '/search.json' | relative_url }}" crossorigin>
|
|
49
|
+
<link rel="preload" as="fetch" href="{{ '/search.json' | relative_url }}?v={{ ds_index_v }}" crossorigin>
|
|
50
50
|
{% endif %}
|
|
51
51
|
|
|
52
52
|
{% if cfg.analytics.plausible_domain %}
|
data/_includes/scripts.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
baseurl: "{{ site.baseurl }}",
|
|
5
5
|
search: {
|
|
6
6
|
enabled: {{ cfg.search.enabled | default: false }},
|
|
7
|
-
endpoint: "{{ '/search.json' | relative_url }}",
|
|
7
|
+
endpoint: "{{ '/search.json' | relative_url }}?v={{ ds_index_v }}",
|
|
8
8
|
max: {{ cfg.search.max_results | default: 8 }},
|
|
9
9
|
hotkey: {{ cfg.search.hotkey | default: false }}
|
|
10
10
|
},
|
data/_includes/search-modal.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<div class="search-modal__body">
|
|
15
15
|
<ul class="search-results" id="searchResults" role="listbox"
|
|
16
|
-
data-endpoint="{{ '/search.json' | relative_url }}"
|
|
16
|
+
data-endpoint="{{ '/search.json' | relative_url }}?v={{ ds_index_v }}"
|
|
17
17
|
data-max="{{ cfg.search.max_results | default: 8 }}"></ul>
|
|
18
18
|
<p class="search-modal__empty" id="searchEmpty" hidden>No results. Try another term.</p>
|
|
19
19
|
<p class="search-modal__hint" id="searchHint">
|
data/_layouts/default.html
CHANGED
|
@@ -8,7 +8,16 @@
|
|
|
8
8
|
site.time so a content-only rebuild does not force every visitor to
|
|
9
9
|
re-download assets that did not change.
|
|
10
10
|
{%- endcomment -%}
|
|
11
|
-
{%- assign ds_version = "1.1.
|
|
11
|
+
{%- assign ds_version = "1.1.1" -%}
|
|
12
|
+
{%- comment -%}
|
|
13
|
+
The search index gets its own token, and a different kind of one. search.json
|
|
14
|
+
is regenerated from the site's content, so it changes when you publish a page
|
|
15
|
+
and not when the theme is upgraded: keyed to ds_version it would go stale the
|
|
16
|
+
moment you added a doc, and readers would keep searching last release's
|
|
17
|
+
index. Build time is the honest key here, and the cost of busting it on every
|
|
18
|
+
deploy is one small JSON, not the whole stylesheet.
|
|
19
|
+
{%- endcomment -%}
|
|
20
|
+
{%- assign ds_index_v = site.time | date: "%s" -%}
|
|
12
21
|
<html lang="{{ site.lang | default: 'en' }}"
|
|
13
22
|
data-skin="{{ skin }}"
|
|
14
23
|
{% if mode != "auto" %}data-mode="{{ mode }}"{% endif %}>
|