word-games-theme 3.0.2 → 3.0.3

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: 033ee4870ddf1a54620ff1d10c23fd7fd09af7c4be5495fc16735868ae4ddd8c
4
- data.tar.gz: 5eca56cdf661763d7e915895fac7ed72d9620e514b80e9babd1102cfffbb1bc3
3
+ metadata.gz: 3c3af7e1ec35a2c0ad31221bb4b47d682c4f16ae7145f4452db1e94e78041295
4
+ data.tar.gz: 95a199d9ebfc3c3709453ff5971c054303e4717502c854d5d388be8301586786
5
5
  SHA512:
6
- metadata.gz: 4f268ab491a555f30648bab7a9aaef55cf6f5f9c64a461d7a1c6fc36e57b121ddb457846e773b03bd2e324bf7b5357a01db879200ed26dcdf49a49708f03b99f
7
- data.tar.gz: 8fec346cd7ab4fd70a7a43dc2f34205b23bb5c0d2ed3d833f44482244570c27d71ec710614e70d1da93c183a24845d3195fd3b347349f61d289801f8fb808d91
6
+ metadata.gz: 50ff01cc56a6e9625e9c8077567f175aee6494e9efcfebf160be5a0529ae1a031ffd8e762d07839ef1847c575454b4997cc7c3cb92f0b3f137e47bd1a78fa668
7
+ data.tar.gz: 1c6367d0696f357f3ba9b3afa41d8087581d60e5f0a949b59bf63aa74b61d4afcdd81f98edf6d229a46df0239e1eedfab2c09bfea1fe1a4491fb4c1a5a83e4c2
@@ -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 %}
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.2
4
+ version: 3.0.3
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-17 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll