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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e0d561ef7e0693d03577b2a0a8c394aeb4fd46474ae9ac30b47b382ecfdd12b
4
- data.tar.gz: 5376a89593386b1b27228bae481882edae7e33fb1b9a6624ccea4cc060b1d2a7
3
+ metadata.gz: 3b61656fb5774f6fc34b342fe0e3d83cc2c1f68e4d7d4eb522b43577e6df4271
4
+ data.tar.gz: cf942e095116fa165954bfb92d6e54cbd22c3cb569ccf8fd650545feac4426f7
5
5
  SHA512:
6
- metadata.gz: 5c6366e5d70b99b0c2056d792ad209d10f96c39a29ca163b0e618442e505b0017bd2946a982bf1f126a111b7a08f7062f4bdcc34be2111b0104e20f3c4520345
7
- data.tar.gz: d6ba0f945883ac3a917257b8ef556bfdc281333fbd0d1c8dd7d0b8c02f2d502263c71585d2b933b70b0cfc4de9ef2fa451c67f9ca11f610b05befc913b0258c2
6
+ metadata.gz: 1ef69a919fd28f4179ce7e09217b855ddf2c57d727a39b79c863791c98cb80f2dcaa3c90f3bfecbc52589c83aaf45d16b95339571102555497b5e3ccae14c354
7
+ data.tar.gz: 16c8e42a310067e74af07667b8e362c5b5e399b33b1190e4c165d89af470d57a6f5da9b0a2d75809896cfbc507aa57c828821367fb425dea386e88da45cc279d
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Language": "English",
3
3
  "htmlLangAtt": "en",
4
- "h1": "We make PDF easy",
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.",
@@ -1 +1 @@
1
- {"tools":[{"name":"split-pdf-rating-check","rating":"5.00","votes":2},{"name":"compress-pdf","rating":"4.85","votes":33}]}
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 an aspiring Civil engineer who loves
20
- photography, music, books and philosophy. She also loves nature and animals. She enjoys reading and sharing information
21
- on various topics involving her knacks.&&https://twitter.com/arjyahi" | split: '&&' %}
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: '&&' %}
@@ -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
- document.head.querySelector('meta[property="og:title"]').setAttribute("content", seoData.TITLE);
21
- document.head.querySelector('meta[name="description"]').setAttribute("content", seoData.META);
22
- document.head.querySelector('meta[name="twitter:title"]').setAttribute("content", seoData.TITLE);
23
- document.head.querySelector('meta[name="twitter:description"]').setAttribute("content", seoData.META);
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
- if (seoData.img) {
28
- feature_img.src = seoData.img
29
- feature_img.setAttribute("alt", seoData.imgalt)
30
- feature_img.style.width = seoData.imgwidth
31
- feature_img.style.height = seoData.imgheight
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
- document.title = seoData.TITLE
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()
@@ -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
- home_h1.innerHTML = seoData.h1
20
- home_h2.innerHTML = seoData.h2
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
- if(seoData.img){
23
- home_img.src = seoData.img
24
- home_img.setAttribute("alt",seoData.imgalt)
25
- home_img.style.width = seoData.imgwidth
26
- home_img.style.height = seoData.imgheight
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
- document.title = seoData.TITLE
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.0
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-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll