appscms-tools-theme 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/home/en/en.json +1 -1
- data/_data/rating/rating.json +1 -1
- data/_includes/authors/authors.html +3 -3
- data/assets/js/featureResult.js +24 -20
- data/assets/js/homeResult.js +24 -16
- 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: 3b61656fb5774f6fc34b342fe0e3d83cc2c1f68e4d7d4eb522b43577e6df4271
|
4
|
+
data.tar.gz: cf942e095116fa165954bfb92d6e54cbd22c3cb569ccf8fd650545feac4426f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef69a919fd28f4179ce7e09217b855ddf2c57d727a39b79c863791c98cb80f2dcaa3c90f3bfecbc52589c83aaf45d16b95339571102555497b5e3ccae14c354
|
7
|
+
data.tar.gz: 16c8e42a310067e74af07667b8e362c5b5e399b33b1190e4c165d89af470d57a6f5da9b0a2d75809896cfbc507aa57c828821367fb425dea386e88da45cc279d
|
data/_data/home/en/en.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"Language": "English",
|
3
3
|
"htmlLangAtt": "en",
|
4
|
-
"h1": "
|
4
|
+
"h1": "Welcome to the home page",
|
5
5
|
"h2": "All-in-one easy-to-use online PDF tools",
|
6
6
|
"TITLE": "Home Title",
|
7
7
|
"META": "See collection of all Android alarm libraries, filter by license, modified date, languages, and select best for your usecase.",
|
data/_data/rating/rating.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"tools":[{"name":"
|
1
|
+
{"tools":[{"name":"compress-pdf","rating":"4.85","votes":34},{"name":"split-pdf-rating-check","rating":"5.00","votes":2}]}
|
@@ -16,9 +16,9 @@ poems.&&https://twitter.com/PaavanThandra" | split: '&&' %}
|
|
16
16
|
who has a keen intererst in micro and nano science with a good sense of content creation on diverse topics and often
|
17
17
|
shares his thoughts and helps those he can. He have a knack of writing essays,stories and
|
18
18
|
poems.&&https://twitter.com/PaavanThandra" | split: '&&' %}
|
19
|
-
{% assign arjyahi = "Arjyahi Bhattacharya&&/assets/images/Arjyahi.webp&&Arjyahi is
|
20
|
-
|
21
|
-
on various topics involving her knacks
|
19
|
+
{% assign arjyahi = "Arjyahi Bhattacharya&&/assets/images/Arjyahi.webp&&Arjyahi is a Data Science and Machine Learning
|
20
|
+
enthusiast who loves music, books, photography, and philosophy. She also loves nature and animals. She enjoys reading
|
21
|
+
and sharing information on various topics involving her knacks&&https://twitter.com/arjyahi" | split: '&&' %}
|
22
22
|
{% assign nikita = "Nikita Gupta&&/assets/images/Nikita.webp&&Nikita is an aspiring MBA graduate, who loves creating
|
23
23
|
content. She loves reading and watching anime. She is into other languages and currently learning Spanish, French and
|
24
24
|
Japanese. Her favourite timepass is solving sudokus. &&N/A" | split: '&&' %}
|
data/assets/js/featureResult.js
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
|
2
|
-
---
|
3
|
-
let script = document.currentScript
|
1
|
+
let script = document.currentScript
|
4
2
|
const params = new URLSearchParams(window.location.search)
|
5
3
|
let type = params.get('fileName')
|
6
4
|
let jsonFileName = atob(type);
|
7
|
-
|
8
5
|
let folderName = script.dataset.foldername
|
9
6
|
let fileName = jsonFileName
|
10
7
|
let lang = script.dataset.lang
|
11
|
-
|
12
8
|
let feature_h1 = document.querySelector(".feature-h1")
|
13
9
|
let feature_h2 = document.querySelector(".feature-h2")
|
14
10
|
let feature_img = document.querySelector(".features-img")
|
15
|
-
const jsonData = {{ site.data | jsonify }}
|
16
|
-
const seoData = jsonData[folderName][lang][fileName]
|
17
|
-
feature_h1.innerHTML = seoData.H1
|
18
|
-
feature_h2.innerHTML = seoData.H2
|
19
11
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
const getSeodata = async () => {
|
13
|
+
let URL = '/data' + '/' + folderName + '/' + lang + '/' + fileName + '.json'
|
14
|
+
console.log(URL)
|
15
|
+
const data = await fetch(URL)
|
16
|
+
const seoData = await data.json()
|
24
17
|
|
18
|
+
feature_h1.innerHTML = seoData.H1
|
19
|
+
feature_h2.innerHTML = seoData.H2
|
25
20
|
|
26
21
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
22
|
+
document.head.querySelector('meta[property="og:title"]').setAttribute("content", seoData.TITLE);
|
23
|
+
document.head.querySelector('meta[name="description"]').setAttribute("content", seoData.META);
|
24
|
+
document.head.querySelector('meta[name="twitter:title"]').setAttribute("content", seoData.TITLE);
|
25
|
+
document.head.querySelector('meta[name="twitter:description"]').setAttribute("content", seoData.META);
|
26
|
+
|
33
27
|
|
34
|
-
|
28
|
+
if (seoData.img) {
|
29
|
+
feature_img.src = seoData.img
|
30
|
+
feature_img.setAttribute("alt", seoData.imgalt)
|
31
|
+
feature_img.style.width = seoData.imgwidth
|
32
|
+
feature_img.style.height = seoData.imgheight
|
33
|
+
}
|
34
|
+
|
35
|
+
document.title = seoData.TITLE
|
36
|
+
|
37
|
+
}
|
38
|
+
getSeodata()
|
data/assets/js/homeResult.js
CHANGED
@@ -1,29 +1,37 @@
|
|
1
|
-
|
2
|
-
---
|
3
|
-
let script = document.currentScript
|
1
|
+
let script = document.currentScript
|
4
2
|
const params = new URLSearchParams(window.location.search)
|
5
3
|
let type = params.get('fileName')
|
6
4
|
let jsonFileName = atob(type);
|
7
|
-
|
8
5
|
let folderName = script.dataset.foldername
|
9
6
|
let fileName = jsonFileName
|
10
7
|
let lang = script.dataset.lang
|
11
8
|
|
12
|
-
|
13
9
|
let home_h1 = document.querySelector(".home-top-h1")
|
14
10
|
let home_h2 = document.querySelector(".home-top-h2")
|
15
11
|
let home_img = document.querySelector(".home-img")
|
16
|
-
const jsonData = {{ site.data | jsonify }}
|
17
|
-
const seoData = jsonData[folderName][lang][fileName]
|
18
12
|
|
19
|
-
|
20
|
-
|
13
|
+
const getSeodata = async () => {
|
14
|
+
let URL = '/data' + '/' + folderName + '/' + lang + '/' + fileName + '.json'
|
15
|
+
const data = await fetch(URL)
|
16
|
+
const seoData = await data.json()
|
21
17
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
18
|
+
home_h1.innerHTML = seoData.h1
|
19
|
+
home_h2.innerHTML = seoData.h2
|
20
|
+
|
21
|
+
document.head.querySelector('meta[property="og:title"]').setAttribute("content", seoData.TITLE);
|
22
|
+
document.head.querySelector('meta[name="description"]').setAttribute("content", seoData.META);
|
23
|
+
document.head.querySelector('meta[name="twitter:title"]').setAttribute("content", seoData.TITLE);
|
24
|
+
document.head.querySelector('meta[name="twitter:description"]').setAttribute("content", seoData.META);
|
28
25
|
|
29
|
-
|
26
|
+
|
27
|
+
if (seoData.img) {
|
28
|
+
home_img.src = seoData.img
|
29
|
+
home_img.setAttribute("alt", seoData.imgalt)
|
30
|
+
home_img.style.width = seoData.imgwidth
|
31
|
+
home_img.style.height = seoData.imgheight
|
32
|
+
}
|
33
|
+
|
34
|
+
document.title = seoData.TITLE
|
35
|
+
|
36
|
+
}
|
37
|
+
getSeodata()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appscms-tools-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|