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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 033ee4870ddf1a54620ff1d10c23fd7fd09af7c4be5495fc16735868ae4ddd8c
4
- data.tar.gz: 5eca56cdf661763d7e915895fac7ed72d9620e514b80e9babd1102cfffbb1bc3
3
+ metadata.gz: 58d221b822fcf58eb0fca3282bccb921a19210f460e6b2c12d2a12f6eb12a6c3
4
+ data.tar.gz: 2a2d64927bb4b65152283d308e946d32189100c504428c900b38afc232eac697
5
5
  SHA512:
6
- metadata.gz: 4f268ab491a555f30648bab7a9aaef55cf6f5f9c64a461d7a1c6fc36e57b121ddb457846e773b03bd2e324bf7b5357a01db879200ed26dcdf49a49708f03b99f
7
- data.tar.gz: 8fec346cd7ab4fd70a7a43dc2f34205b23bb5c0d2ed3d833f44482244570c27d71ec710614e70d1da93c183a24845d3195fd3b347349f61d289801f8fb808d91
6
+ metadata.gz: bcdf815c145c777f87c8802695475637548673c7ff3cc9f8cc26b6631d68c1ba31d5547395489958f90f5ff20230cabf3bd894ac4ebd72deba0a903db179997f
7
+ data.tar.gz: baa5fe440eb2fa78b286de404216f3a122dbeb56ab9265c5c63b73e33fa9b056ab9a5fe877e827695b35fa07562cdd17b9a578a1dc901885158cd48f231d1ab2
data/_data/blog/nav.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "navItems": [
5
5
  {
6
6
  "name": "Blog",
7
- "url": "blog"
7
+ "url": "/blog/"
8
8
  },
9
9
  {
10
10
  "name": "",
@@ -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.2
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-17 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll