word-games-theme 3.0.2 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/blog/nav.json +1 -1
- data/_includes/alternates/alternates.html +0 -3
- data/_includes/wordgames/header/new-header.html +1 -1
- data/assets/js/theme.js +2 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58d221b822fcf58eb0fca3282bccb921a19210f460e6b2c12d2a12f6eb12a6c3
|
4
|
+
data.tar.gz: 2a2d64927bb4b65152283d308e946d32189100c504428c900b38afc232eac697
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcdf815c145c777f87c8802695475637548673c7ff3cc9f8cc26b6631d68c1ba31d5547395489958f90f5ff20230cabf3bd894ac4ebd72deba0a903db179997f
|
7
|
+
data.tar.gz: baa5fe440eb2fa78b286de404216f3a122dbeb56ab9265c5c63b73e33fa9b056ab9a5fe877e827695b35fa07562cdd17b9a578a1dc901885158cd48f231d1ab2
|
data/_data/blog/nav.json
CHANGED
@@ -68,10 +68,7 @@
|
|
68
68
|
<link data-rh="true" rel="alternate" href="{{site.url}}{{item.permalink}}" hreflang="{{languagetext[0]}}" />
|
69
69
|
{%- endif -%}
|
70
70
|
{%- endif -%}
|
71
|
-
|
72
71
|
{%- else -%}
|
73
|
-
|
74
|
-
|
75
72
|
{% assign final_permalink = item.permalink %}
|
76
73
|
{% if item.permalink contains '/' %}
|
77
74
|
{% else %}
|
@@ -111,7 +111,7 @@
|
|
111
111
|
{%- endif -%}
|
112
112
|
|
113
113
|
<div class="blog-container d-flex justify-content-start align-items-center">
|
114
|
-
<a class="blog-link nav-link" href="/blog">Blog</a>
|
114
|
+
<a class="blog-link nav-link" href="/blog/">Blog</a>
|
115
115
|
</div>
|
116
116
|
|
117
117
|
<div class="searchBar">
|
data/assets/js/theme.js
CHANGED
@@ -74,9 +74,6 @@ if ("{{ site.removeBootstrapJs }}" === "true") {
|
|
74
74
|
|
75
75
|
}
|
76
76
|
|
77
|
-
|
78
|
-
let getScript = document.currentScript
|
79
|
-
let pageLang = getScript.dataset.lang
|
80
77
|
const searchWorker = new Worker('/assets/js/search-worker.js');
|
81
78
|
function fetchData() {
|
82
79
|
return new Promise((resolve, reject) => {
|
@@ -100,18 +97,9 @@ function filterData(data, query) {
|
|
100
97
|
function displayResults(results) {
|
101
98
|
const resultsContainer = document.getElementById('results');
|
102
99
|
resultsContainer.style.display = results.length ? 'block' : 'none';
|
103
|
-
|
104
|
-
if(pageLang == "en"){
|
105
|
-
resultsContainer.innerHTML = results.length
|
100
|
+
resultsContainer.innerHTML = results.length
|
106
101
|
? results.map(result => `<div class="result-item"><a href="${result.url}">${result.name}</a></div>`).join('')
|
107
102
|
: '<p>No results found</p>';
|
108
|
-
}else{
|
109
|
-
resultsContainer.innerHTML = results.length
|
110
|
-
? results.map(result => `<div class="result-item"><a href="/${pageLang}${result.url}">${result.name}</a></div>`).join('')
|
111
|
-
: '<p>No results found</p>';
|
112
|
-
}
|
113
|
-
|
114
|
-
|
115
103
|
}
|
116
104
|
const searchInput = document.querySelector('.searchBar input');
|
117
105
|
let data;
|
@@ -121,7 +109,7 @@ searchInput.addEventListener('input', async (event) => {
|
|
121
109
|
} else {
|
122
110
|
searchInput.classList.remove('blinkBoxShadow');
|
123
111
|
}
|
124
|
-
|
112
|
+
|
125
113
|
const query = event.target.value;
|
126
114
|
if (!data) {
|
127
115
|
// Fetch the data only if it hasn't been fetched before
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: word-games-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|