appscms-tools-theme 3.7.1 → 3.7.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.
@@ -1,315 +1,608 @@
1
1
  <head>
2
2
  {% assign file = page.fileName %} {% assign lang = page.lang %} {% assign
3
3
  dataArr = site.data.[page.folderName][lang][file] %} {% assign dataToShow =
4
- dataArr %} {% assign title = dataToShow.TITLE | replace:"$variable",
5
- page.value | default:page.title | default: site.title %} {% assign description
6
- = dataToShow.META | replace:"$variable", page.value | default:
4
+ dataArr %} {% assign title = dataToShow.TITLE | replace: "$variable",
5
+ page.value | default: page.title | default: site.title %} {% assign
6
+ description = dataToShow.META | replace: "$variable", page.value | default:
7
7
  page.description | default: site.description %} {% assign keywords =
8
8
  dataToShow.keywords %} {% assign favicon = site.favicon %} {%- assign title =
9
9
  title | split: ' ' -%} {%- assign newtitle = '' %} {% for operation in title
10
10
  %} {%- if forloop.first -%} {% assign word = operation | capitalize %} {%
11
- assign newtitle = newtitle | append : word %} {% assign newtitle = newtitle |
12
- append : " " %} {%- else -%} {% assign word = operation %} {%- if forloop.last
13
- -%} {% assign newtitle = newtitle | append : word %} {%- else -%} {% assign
14
- newtitle = newtitle | append : word %} {% assign newtitle = newtitle | append
15
- : " " %} {%- endif -%} {%- endif -%} {% endfor %} {%- assign description =
11
+ assign newtitle = newtitle | append: word %} {% assign newtitle = newtitle |
12
+ append: " " %} {%- else -%} {% assign word = operation %} {%- if forloop.last
13
+ -%} {% assign newtitle = newtitle | append: word %} {%- else -%} {% assign
14
+ newtitle = newtitle | append: word %} {% assign newtitle = newtitle | append :
15
+ " " %} {%- endif -%} {%- endif -%} {% endfor %} {%- assign description =
16
16
  description | split: ' ' -%} {% assign pagedescription = '' %} {% for
17
17
  operation in description %} {%- if forloop.first -%} {% assign word =
18
18
  operation | capitalize %} {% assign pagedescription = pagedescription | append
19
- : word %} {% assign pagedescription = pagedescription | append : " " %} {%-
19
+ : word %} {% assign pagedescription = pagedescription | append: " " %} {%-
20
20
  else -%} {% assign word = operation %} {%- if forloop.last -%} {% assign
21
- pagedescription = pagedescription | append : word %} {%- else -%} {% assign
22
- pagedescription = pagedescription | append : word %} {% assign pagedescription
23
- = pagedescription | append : " " %} {%- endif -%} {%- endif -%} {% endfor %}
24
- {%- assign title = newtitle -%} {%- assign description = pagedescription-%}
21
+ pagedescription = pagedescription | append: word %} {%- else -%} {% assign
22
+ pagedescription = pagedescription | append: word %} {% assign pagedescription
23
+ = pagedescription | append: " " %} {%- endif -%} {%- endif -%} {% endfor %}
24
+ {%- assign title = newtitle -%} {%- assign description = pagedescription -%}
25
25
  <meta charset="utf-8" />
26
-
27
- <!-- <script>
28
- partytown = {
29
- forward: ["dataLayer.push"],
30
- };
31
- </script>
32
-
33
- <script type="text/javascript">
34
- /* Partytown 0.7.5 - MIT builder.io */
35
- !(function (t, e, n, i, r, o, a, d, s, c, p, l) {
36
- function u() {
37
- l ||
38
- ((l = 1),
39
- "/" ==
40
- (a =
41
- (o.lib || "/assets/js/partytown/") +
42
- (o.debug ? "debug/" : ""))[0] &&
43
- ((s = e.querySelectorAll('script[type="text/partytown"]')),
44
- i != t
45
- ? i.dispatchEvent(new CustomEvent("pt1", { detail: t }))
46
- : ((d = setTimeout(f, 1e4)),
47
- e.addEventListener("pt0", w),
48
- r
49
- ? h(1)
50
- : n.serviceWorker
51
- ? n.serviceWorker
52
- .register(a + (o.swPath || "partytown-sw.js"), {
53
- scope: a,
54
- })
55
- .then(function (t) {
56
- t.active
57
- ? h()
58
- : t.installing &&
59
- t.installing.addEventListener(
60
- "statechange",
61
- function (t) {
62
- "activated" == t.target.state && h();
63
- }
64
- );
65
- }, console.error)
66
- : f())));
67
- }
68
- function h(t) {
69
- (c = e.createElement(t ? "script" : "iframe")),
70
- t ||
71
- (c.setAttribute(
72
- "style",
73
- "display:block;width:0;height:0;border:0;visibility:hidden"
74
- ),
75
- c.setAttribute("aria-hidden", !0)),
76
- (c.src =
77
- a +
78
- "partytown-" +
79
- (t ? "atomics.js?v=0.7.5" : "sandbox-sw.html?" + Date.now())),
80
- e.body.appendChild(c);
81
- }
82
- function f(n, r) {
83
- for (
84
- w(),
85
- i == t &&
86
- (o.forward || []).map(function (e) {
87
- delete t[e.split(".")[0]];
88
- }),
89
- n = 0;
90
- n < s.length;
91
- n++
92
- )
93
- ((r = e.createElement("script")).innerHTML = s[n].innerHTML),
94
- e.head.appendChild(r);
95
- c && c.parentNode.removeChild(c);
96
- }
97
- function w() {
98
- clearTimeout(d);
99
- }
100
- (o = t.partytown || {}),
101
- i == t &&
102
- (o.forward || []).map(function (e) {
103
- (p = t),
104
- e.split(".").map(function (e, n, i) {
105
- p = p[i[n]] =
106
- n + 1 < i.length
107
- ? "push" == i[n + 1]
108
- ? []
109
- : p[i[n]] || {}
110
- : function () {
111
- (t._ptf = t._ptf || []).push(i, arguments);
112
- };
113
- });
114
- }),
115
- "complete" == e.readyState
116
- ? u()
117
- : (t.addEventListener("DOMContentLoaded", u),
118
- t.addEventListener("load", u));
119
- })(window, document, navigator, top, window.crossOriginIsolated);
120
- </script> -->
121
-
122
26
  <link rel="shortcut icon" href="{{favicon}}" />
123
27
  <meta name="viewport" content="width=device-width" />
28
+
124
29
  {%- if page.layout == "aboutUs" -%}
125
- <title>{{site.name}} - About us | {{title}}</title>
30
+
31
+ <title>{{ site.name }} - About us | {{ title }}</title>
126
32
  {% elsif page.layout == "termAndCondition" %}
127
- <title>{{site.name}} - Terms and conditions | {{title}}</title>
33
+ <title>{{ site.name }} - Terms and conditions | {{ title }}</title>
128
34
  {% elsif page.layout == "disclaimer" %}
129
- <title>{{site.name}} - Disclaimer | {{title}}</title>
35
+ <title>{{ site.name }} - Disclaimer | {{ title }}</title>
130
36
  {% elsif page.layout == "privacyPolicy" %}
131
- <title>{{site.name}} - Privacy policy | {{title}}</title>
37
+ <title>{{ site.name }} - Privacy policy | {{ title }}</title>
132
38
  {% elsif page.layout == "contactUs" %}
133
- <title>{{site.name}} - Contact | {{title}}</title>
39
+ <title>{{ site.name }} - Contact | {{ title }}</title>
134
40
  {% elsif page.layout == "help" %}
135
- <title>{{site.name}} - Help | {{title}}</title>
41
+ <title>{{ site.name }} - Help | {{ title }}</title>
136
42
  {%- else -%}
137
43
 
138
- <title>{{newtitle}}</title>
44
+ <title>{{ newtitle }}</title>
45
+
139
46
  {%- endif -%} {%- if dataToShow.keywords -%}
47
+
140
48
  <meta name="keywords" content="{{keywords}}" />
49
+
141
50
  {%- endif -%} {%- if page.layout == "aboutUs" -%}
142
- <meta name="description" content="{{site.name}} - About us | {{description}}" />
51
+
52
+ <meta
53
+ name="description"
54
+ content="{{site.name}} - About us | {{description}}"
55
+ />
143
56
  {% elsif page.layout == "termAndCondition" %}
144
- <meta name="description" content="{{site.name}} - Terms and conditions | {{description}}" />
57
+ <meta
58
+ name="description"
59
+ content="{{site.name}} - Terms and conditions | {{description}}"
60
+ />
145
61
  {% elsif page.layout == "disclaimer" %}
146
- <meta name="description" content="{{site.name}} - Disclaimer | {{description}}" />
62
+ <meta
63
+ name="description"
64
+ content="{{site.name}} - Disclaimer | {{description}}"
65
+ />
147
66
  {% elsif page.layout == "privacyPolicy" %}
148
- <meta name="description" content="{{site.name}} - Privacy policy | {{description}}" />
67
+ <meta
68
+ name="description"
69
+ content="{{site.name}} - Privacy policy | {{description}}"
70
+ />
149
71
  {% elsif page.layout == "contactUs" %}
150
- <meta name="description" content="{{site.name}} - Contact | {{description}}" />
72
+ <meta
73
+ name="description"
74
+ content="{{site.name}} - Contact | {{description}}"
75
+ />
151
76
  {%- else -%}
152
77
  <meta name="description" content="{{description}}" />
78
+
153
79
  {%- endif -%}
154
80
 
155
81
  <link rel="canonical" href="{{site.url | append: page.url}}" />
156
82
 
157
83
  {%- if site.versioning -%}
158
- <link rel="stylesheet"
159
- href="{{ site.baseurl }}/{% ministamp assets/css/bootstrap.min.css assets/css/bootstrap.min.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous"
160
- {%- endif -%}>
84
+
85
+ <link
86
+ rel="stylesheet"
87
+ href="{{ site.baseurl }}/{% ministamp assets/css/bootstrap.min.css assets/css/bootstrap.min.css %}"
88
+ {%-
89
+ if
90
+ site.crossorigin
91
+ -%}
92
+ {{
93
+ }}
94
+ crossorigin="anonymous"
95
+ {%-
96
+ endif
97
+ -%}
98
+ />
99
+
161
100
  {%- if dataToShow.css -%}
162
- <link rel="stylesheet" href="{{dataToShow.css}}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%- endif
163
- -%} />
101
+
102
+ <link
103
+ rel="stylesheet"
104
+ href="{{dataToShow.css}}"
105
+ {%-
106
+ if
107
+ site.crossorigin
108
+ -%}
109
+ {{
110
+ }}
111
+ crossorigin="anonymous"
112
+ {%-
113
+ endif
114
+ -%}
115
+ />
164
116
  {%- else -%}
165
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/tools.css assets/css/tools.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
166
- endif -%} />
117
+ <link
118
+ rel="stylesheet"
119
+ href="{{ site.baseurl }}/{% ministamp assets/css/tools.css assets/css/tools.css %}"
120
+ {%-
121
+ if
122
+ site.crossorigin
123
+ -%}
124
+ {{
125
+ }}
126
+ crossorigin="anonymous"
127
+ {%-
128
+ endif
129
+ -%}
130
+ />
131
+
167
132
  {%- endif -%} {%- if site.monumetricId -%}
168
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/responsive.css assets/css/responsive.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
169
- endif -%} />
133
+
134
+ <link
135
+ rel="stylesheet"
136
+ href="{{ site.baseurl }}/{% ministamp assets/css/responsive.css assets/css/responsive.css %}"
137
+ {%-
138
+ if
139
+ site.crossorigin
140
+ -%}
141
+ {{
142
+ }}
143
+ crossorigin="anonymous"
144
+ {%-
145
+ endif
146
+ -%}
147
+ />
148
+
170
149
  {%- endif -%} {%- if page.layout == "calculator" -%}
171
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/calculators.css assets/css/calculators.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous"
172
- {%- endif -%} />
150
+
151
+ <link
152
+ rel="stylesheet"
153
+ href="{{ site.baseurl }}/{% ministamp assets/css/calculators.css assets/css/calculators.css %}"
154
+ {%-
155
+ if
156
+ site.crossorigin
157
+ -%}
158
+ {{
159
+ }}
160
+ crossorigin="anonymous"
161
+ {%-
162
+ endif
163
+ -%}
164
+ />
165
+
173
166
  {%- endif -%} {%- if page.layout == "home-1" -%}
174
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/home-1.css assets/css/home-1.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
175
- endif -%} />
176
- {%- endif -%} {%- if page.layout == "feature-1" or page.newBox or
177
- page.layout == "feature-download" -%}
178
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/feature-1.css assets/css/feature-1.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
179
- endif -%} />
167
+
168
+ <link
169
+ rel="stylesheet"
170
+ href="{{ site.baseurl }}/{% ministamp assets/css/home-1.css assets/css/home-1.css %}"
171
+ {%-
172
+ if
173
+ site.crossorigin
174
+ -%}
175
+ {{
176
+ }}
177
+ crossorigin="anonymous"
178
+ {%-
179
+ endif
180
+ -%}
181
+ />
182
+
183
+ {%- endif -%} {%- if page.layout == "feature-1" or page.newBox or page.layout
184
+ == "feature-download" -%}
185
+
186
+ <link
187
+ rel="stylesheet"
188
+ href="{{ site.baseurl }}/{% ministamp assets/css/feature-1.css assets/css/feature-1.css %}"
189
+ {%-
190
+ if
191
+ site.crossorigin
192
+ -%}
193
+ {{
194
+ }}
195
+ crossorigin="anonymous"
196
+ {%-
197
+ endif
198
+ -%}
199
+ />
200
+
180
201
  {%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
181
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/common.css assets/css/common.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
182
- endif -%} />
202
+
203
+ <link
204
+ rel="stylesheet"
205
+ href="{{ site.baseurl }}/{% ministamp assets/css/common.css assets/css/common.css %}"
206
+ {%-
207
+ if
208
+ site.crossorigin
209
+ -%}
210
+ {{
211
+ }}
212
+ crossorigin="anonymous"
213
+ {%-
214
+ endif
215
+ -%}
216
+ />
217
+
183
218
  {%- endif -%} {%- if page.layout == 'imagekit' -%}
184
- <link rel="stylesheet" href="{{ site.baseurl }}/{% ministamp assets/css/imagekit.css assets/css/imagekit.css %}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
185
- endif -%} />
186
- {%- endif -%}
187
219
 
220
+ <link
221
+ rel="stylesheet"
222
+ href="{{ site.baseurl }}/{% ministamp assets/css/imagekit.css assets/css/imagekit.css %}"
223
+ {%-
224
+ if
225
+ site.crossorigin
226
+ -%}
227
+ {{
228
+ }}
229
+ crossorigin="anonymous"
230
+ {%-
231
+ endif
232
+ -%}
233
+ />
234
+
235
+ {%- endif -%} {%- else -%}
236
+
237
+ <link
238
+ rel="stylesheet"
239
+ href="/assets/css/bootstrap.min.css"
240
+ {%-
241
+ if
242
+ site.crossorigin
243
+ -%}
244
+ {{
245
+ }}
246
+ crossorigin="anonymous"
247
+ {%-
248
+ endif
249
+ -%}
250
+ />
188
251
 
189
- {%- else -%}
190
- <link rel="stylesheet" href="/assets/css/bootstrap.min.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous"
191
- {%- endif -%} />
192
252
  {%- if dataToShow.css -%}
193
- <link rel="stylesheet" href="{{dataToShow.css}}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%- endif
194
- -%} />
253
+
254
+ <link
255
+ rel="stylesheet"
256
+ href="{{dataToShow.css}}"
257
+ {%-
258
+ if
259
+ site.crossorigin
260
+ -%}
261
+ {{
262
+ }}
263
+ crossorigin="anonymous"
264
+ {%-
265
+ endif
266
+ -%}
267
+ />
195
268
  {%- else -%}
196
- <link rel="stylesheet" href="/assets/css/tools.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
197
- endif -%} />
269
+ <link
270
+ rel="stylesheet"
271
+ href="/assets/css/tools.css"
272
+ {%-
273
+ if
274
+ site.crossorigin
275
+ -%}
276
+ {{
277
+ }}
278
+ crossorigin="anonymous"
279
+ {%-
280
+ endif
281
+ -%}
282
+ />
283
+
198
284
  {%- endif -%} {%- if site.monumetricId -%}
199
- <link rel="stylesheet" href="/assets/css/responsive.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
200
- endif -%} />
285
+
286
+ <link
287
+ rel="stylesheet"
288
+ href="/assets/css/responsive.css"
289
+ {%-
290
+ if
291
+ site.crossorigin
292
+ -%}
293
+ {{
294
+ }}
295
+ crossorigin="anonymous"
296
+ {%-
297
+ endif
298
+ -%}
299
+ />
300
+
201
301
  {%- endif -%} {%- if page.layout == "calculator" -%}
202
- <link rel="stylesheet" href="/assets/css/calculators.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous"
203
- {%- endif -%} />
302
+
303
+ <link
304
+ rel="stylesheet"
305
+ href="/assets/css/calculators.css"
306
+ {%-
307
+ if
308
+ site.crossorigin
309
+ -%}
310
+ {{
311
+ }}
312
+ crossorigin="anonymous"
313
+ {%-
314
+ endif
315
+ -%}
316
+ />
317
+
204
318
  {%- endif -%} {%- if page.layout == "home-1" -%}
205
- <link rel="stylesheet" href="/assets/css/home-1.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
206
- endif -%} />
207
- {%- endif -%} {%- if page.layout == "feature-1" or page.newBox or
208
- page.layout == "feature-download" -%}
209
- <link rel="stylesheet" href="/assets/css/feature-1.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
210
- endif -%} />
319
+
320
+ <link
321
+ rel="stylesheet"
322
+ href="/assets/css/home-1.css"
323
+ {%-
324
+ if
325
+ site.crossorigin
326
+ -%}
327
+ {{
328
+ }}
329
+ crossorigin="anonymous"
330
+ {%-
331
+ endif
332
+ -%}
333
+ />
334
+
335
+ {%- endif -%} {%- if page.layout == "feature-1" or page.newBox or page.layout
336
+ == "feature-download" -%}
337
+
338
+ <link
339
+ rel="stylesheet"
340
+ href="/assets/css/feature-1.css"
341
+ {%-
342
+ if
343
+ site.crossorigin
344
+ -%}
345
+ {{
346
+ }}
347
+ crossorigin="anonymous"
348
+ {%-
349
+ endif
350
+ -%}
351
+ />
352
+
211
353
  {%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
212
- <link rel="stylesheet" href="/assets/css/common.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
213
- endif -%} />
354
+
355
+ <link
356
+ rel="stylesheet"
357
+ href="/assets/css/common.css"
358
+ {%-
359
+ if
360
+ site.crossorigin
361
+ -%}
362
+ {{
363
+ }}
364
+ crossorigin="anonymous"
365
+ {%-
366
+ endif
367
+ -%}
368
+ />
369
+
214
370
  {%- endif -%} {%- if page.layout == 'imagekit' -%}
215
- <link rel="stylesheet" href="/assets/css/imagekit.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
216
- endif -%} />
217
- {%- endif -%}
218
- {%- endif -%}
371
+
372
+ <link
373
+ rel="stylesheet"
374
+ href="/assets/css/imagekit.css"
375
+ {%-
376
+ if
377
+ site.crossorigin
378
+ -%}
379
+ {{
380
+ }}
381
+ crossorigin="anonymous"
382
+ {%-
383
+ endif
384
+ -%}
385
+ />
386
+
387
+ {%- endif -%} {%- endif -%}
219
388
 
220
389
  <meta data-rh="true" property="og:image" content="{{site.url}}{{favicon}}" />
221
390
  <meta property="og:title" content="{{title}}" />
222
391
  <meta property="og:description" content="{{description}}" />
223
392
  <meta property="og:type" content="website" />
224
- <meta data-rh="true" property="og:url" content="{{site.url | append: page.url}}" />
393
+ <meta
394
+ data-rh="true"
395
+ property="og:url"
396
+ content="{{site.url | append: page.url}}"
397
+ />
225
398
  <meta data-rh="true" property="og:site_name" content="{{site.name}}" />
226
399
  <meta data-rh="true" property="twitter:domain" content="{{site.url}}" />
227
- <meta data-rh="true" property="twitter:url" content="{{site.url | append: page.url}}" />
400
+ <meta
401
+ data-rh="true"
402
+ property="twitter:url"
403
+ content="{{site.url | append: page.url}}"
404
+ />
228
405
  <meta data-rh="true" name="twitter:title" content="{{title}}" />
229
406
  <meta data-rh="true" name="twitter:description" content="{{description}}" />
230
- <meta data-rh="true" name="twitter:image:src" content="{{site.url}}{{favicon}}" />
407
+ <meta
408
+ data-rh="true"
409
+ name="twitter:image:src"
410
+ content="{{site.url}}{{favicon}}"
411
+ />
231
412
  {% include adsense/adsense.html %} {%- if page.noindex -%}
232
413
  <meta name="robots" content="noindex" />
414
+
233
415
  {%- endif -%} {%- if site.pwa -%}
416
+
234
417
  <link rel="manifest" href="/assets/js/manifest.json" />
418
+
235
419
  {%- endif -%} {%- if site.internationalization -%} {%- include
236
420
  alternates/alternates.html -%} {%- endif -%} {% include cssfile/links.html %}
421
+
237
422
  <script type="application/ld+json">
238
423
  {
239
424
  "@context": "http://schema.org",
240
425
  "@type": "Organization",
241
- "url": "{{site.siteurl}}",
242
- "logo": "{{site.siteurl}}{{site.logo}}"
426
+ "url": "{{ site.siteurl }}",
427
+ "logo": "{{ site.siteurl }}{{ site.logo }}"
243
428
  }
244
429
  </script>
245
430
  <script type="application/ld+json">
246
431
  {
247
432
  "@context": "http://schema.org",
248
433
  "@type": "WebSite",
249
- "name": "{{site.name}}",
250
- "alternateName": "{{site.alternateName}}",
251
- "url": "{{site.siteurl}}"
434
+ "name": "{{ site.name }}",
435
+ "alternateName": "{{ site.alternateName }}",
436
+ "url": "{{ site.siteurl }}"
252
437
  }
253
438
  </script>
254
439
  {%- if dataToShow.HOW_TO_CONTENT -%} {%- if dataToShow.HOW_TO_CONTENT.heading
255
- != '' -%}
440
+ != '' -%} {%- assign HOW_TO_CONTENT = dataToShow.HOW_TO_CONTENT -%}
256
441
  <script type="application/ld+json">
257
442
  {
258
- "@context": "http://schema.org",
259
- "@type": "HowTo",
260
- "name": "{{dataToShow.HOW_TO_CONTENT.heading | replace:'"', "'" }}",
261
- "image": "{{site.siteurl}}{{dataToShow.HOW_TO_CONTENT.logoImageUrl}}",
262
- "step": [
263
- {%- for item in dataToShow.HOW_TO_CONTENT.steps-%}
264
- {%- if forloop.last == true -%}
265
- { "@type": "HowToStep",
266
- "text": "{{item | replace:'"', "'" }}",
267
- "image": "{{site.siteurl}}{{dataToShow.HOW_TO_CONTENT.logoImageUrl}}",
268
- "url": "{{site.url | append: page.url}}#step{{ forloop.index }}"
269
- }
270
- {%- else -%}
271
- { "@type": "HowToStep",
272
- "text": "{{item | replace:'"', "'" }}",
273
- "image": "{{site.siteurl}}{{dataToShow.HOW_TO_CONTENT.logoImageUrl}}",
274
- "url": "{{site.url | append: page.url}}#step{{ forloop.index}}"
275
- },
276
- {%- endif -%}
277
- {%- endfor -%}
278
- ]
443
+ "@context": "http://schema.org",
444
+ "@type": "HowTo",
445
+ "name": "{{ HOW_TO_CONTENT.heading }}",
446
+ {% if HOW_TO_CONTENT.YoutubeVideoUrl %}
447
+ "potentialAction": {
448
+ "@type": "WatchAction",
449
+ "target": {
450
+ "@type": "EntryPoint",
451
+ "urlTemplate": "{{ HOW_TO_CONTENT.YoutubeVideoUrl }}",
452
+ "actionPlatform": [
453
+ "http://schema.org/DesktopWebPlatform",
454
+ "http://schema.org/AndroidPlatform",
455
+ "http://schema.org/IOSPlatform"
456
+ ]
457
+ }
458
+ },
459
+ {% else %}
460
+ "image": {
461
+ "@type": "ImageObject",
462
+ "url": "{{ HOW_TO_CONTENT.logoImageUrl }}"
463
+ },
464
+ {% endif %}
465
+ "step": [
466
+ {% for step in HOW_TO_CONTENT.steps %}
467
+ {
468
+ "@type": "HowToStep",
469
+ "text": "{{ step }}"
470
+ }{% unless forloop.last %},{% endunless %}
471
+ {% endfor %}
472
+ ]
279
473
  }
280
474
  </script>
281
- {%- endif -%} {%- endif -%} {%- if dataToShow.FAQ -%} {%- if
282
- dataToShow.FAQ.first.question !='' -%}
475
+ {%- endif -%} {%- endif -%} {%- if dataToShow.infographics -%} {%- assign
476
+ infographics = dataToShow.infographics -%}
283
477
  <script type="application/ld+json">
284
- {
285
- "@context": "http://schema.org",
286
- "@type": "FAQPage",
287
- "mainEntity": [
288
- {%- for item in dataToShow.FAQ-%}
289
- {%- if forloop.last == true -%}
290
- {"@type": "Question",
291
- "name": "{{item.question | replace:'"', "'" }}",
292
- "acceptedAnswer": {
293
- "@type": "Answer",
294
- "text": "{{item.answer | replace:'"', "'" }}"
295
- }
296
- }
297
- {%- else -%}
298
- {"@type": "Question",
299
- "name": "{{item.question | replace:'"', "'" }}",
300
- "acceptedAnswer": {
301
- "@type": "Answer",
302
- "text": "{{item.answer | replace:'"', "'" }}"
303
- }
304
- },
305
- {%- endif -%}
306
- {%- endfor -%}
307
- ]
478
+ {
479
+ "@context": "http://schema.org",
480
+ "@type": "ItemList",
481
+ "name": "Infographics",
482
+ "itemListElement": [
483
+ {% assign position = 1 %}
484
+ {% for infographic in infographics %}
485
+ {
486
+ "@type": "ListItem",
487
+ "position": {{ position }},
488
+ "item": {
489
+ "@type": "ImageObject",
490
+ "name": "Infographic {{ position }}",
491
+ "description": "{{ infographic.description }}",
492
+ "contentUrl": "{{ infographic.image }}"
493
+ }
494
+ }{% unless forloop.last %},{% endunless %}
495
+ {% assign position = position | plus: 1 %}
496
+ {% endfor %}
497
+ ]
308
498
  }
309
499
  </script>
500
+ {%- endif -%} {%- if dataToShow.author -%} {%- include authors/authors.html
501
+ -%} {%- assign featureAuthor = dataToShow.author | split: " " -%} {%- assign
502
+ author = featureAuthor.first | downcase -%} {%- assign collection = [author]
503
+ -%} {%- for item in collection -%} {%- if forloop.index == 1 -%} {%- assign
504
+ featureAuthorName = item -%} {%- endif -%} {%- if forloop.index == 2 -%} {%-
505
+ assign featureAuthorImage = item -%} {%- endif -%} {%- if forloop.index == 3
506
+ -%} {%- assign featureAuthorBio = item -%} {%- endif -%} {%- if forloop.index
507
+ == 4 -%} {%- assign featureAuthorTwitter = item -%} {%- endif -%} {%- endfor
508
+ -%}
509
+ <script type="application/ld+json">
510
+ {
511
+ "@context": "https://schema.org/",
512
+ "@type": "Person",
513
+ "name": "{{ featureAuthorName }}",
514
+ "url": "{{ site.siteurl }}/authors/{{ featureAuthorName | downcase | replace: ' ', '-' }}",
515
+ "image": "{{ site.siteurl }}{{ featureAuthorImage }}",
516
+ "sameAs": ["{{ featureAuthorTwitter }}"]
517
+ }
518
+ </script>
519
+ {%- endif -%} {%- if dataToShow.contributors -%} {%- assign
520
+ featureContributors = dataToShow.contributors | uniq: 'name' -%} {%- include
521
+ authors/authors.html -%}
522
+ <script type="application/ld+json">
523
+ {
524
+ "@context": "https://schema.org/",
525
+ "@type": "ItemList",
526
+ "name": "Contributors",
527
+ "itemListElement": [
528
+ {%- for contributor in featureContributors -%}
529
+ {%- assign featureContributor = contributor.name | split: " " -%}
530
+ {%- assign featureContributor = featureContributor.first | downcase -%}
531
+ {%- assign collection = [featureContributor] -%}
532
+ {%- for item in collection -%}
533
+ {%- if forloop.index == 1 -%}
534
+ {%- assign featureContributorName = item -%}
535
+ {%- endif -%}
536
+ {%- if forloop.index == 2 -%}
537
+ {%- assign featureContributorImage = item -%}
538
+ {%- endif -%}
539
+ {%- if forloop.index == 3 -%}
540
+ {%- assign featureContributorBio = item -%}
541
+ {%- endif -%}
542
+ {%- if forloop.index == 4 -%}
543
+ {%- assign featureContributorTwitter = item -%}
544
+ {%- endif -%}
545
+ {%- endfor -%}
546
+ {%- assign showUrl = true -%}
547
+
548
+ {%- if featureContributorImage -%}
549
+ {%- else -%}
550
+ {%- assign featureContributorImage = "/assets/images/contributor.webp" -%}
551
+ {%- endif -%}
552
+ {%- if featureContributorName -%}
553
+ {
554
+ "@type": "Person",
555
+ "name": "{{ featureContributorName }}",
556
+ "position": {{forloop.index}},{%- if showUrl -%}
557
+ "url": "{{ site.siteurl }}/authors/{{ featureContributorName | downcase | replace: ' ', '-' }}",
558
+ {%- else -%}
559
+ "url": "{{ site.siteurl }}/authors",
560
+ {%- endif -%}
561
+ "image": "{{ site.siteurl }}{{ featureContributorImage }}"{% if featureContributorTwitter != "N/A" and featureContributorTwitter contains "twitter.com" %}
562
+ ,"sameAs": ["{{ featureContributorTwitter }}"]
563
+ {% endif %}
564
+ }{% unless forloop.last %},{% endunless %}
565
+ {%- endif -%}
566
+ {% endfor %}
567
+ ]
568
+ }
569
+ </script>
570
+ {%- endif -%} {%- if dataToShow.FAQ -%} {%- if dataToShow.FAQ.first.question
571
+ != '' -%}
572
+ <script type="application/ld+json">
573
+ {
574
+ "@context": "http://schema.org",
575
+ "@type": "FAQPage",
576
+ "mainEntity": [
577
+ {%- for item in dataToShow.FAQ -%}
578
+ {%- if forloop.last == true -%}
579
+ {
580
+ "@type": "Question",
581
+ "name": "{{ item.question | replace: '"', "'" }}",
582
+ "acceptedAnswer": {
583
+ "@type": "Answer",
584
+ "text": "{{ item.answer | replace: '"', "'" }}"
585
+ }
586
+ }
587
+ {%- else -%}
588
+ {
589
+ "@type": "Question",
590
+ "name": "{{ item.question | replace: '"', "'" }}",
591
+ "acceptedAnswer": {
592
+ "@type": "Answer",
593
+ "text": "{{ item.answer | replace: '"', "'" }}"
594
+ }
595
+ },
596
+ {%- endif -%}
597
+ {%- endfor -%}
598
+ ]
599
+ }
600
+ </script>
601
+
310
602
  {%- endif -%} {%- endif -%} {%- if page.tool -%} {%- include
311
603
  Rating/structureddata.html -%} {%- endif -%} {%- include google-analytics.html
312
604
  -%} {%- if site.pwa -%}
605
+
313
606
  <script>
314
607
  if ("serviceWorker" in navigator) {
315
608
  window.addEventListener("load", () => {
@@ -320,9 +613,10 @@
320
613
  });
321
614
  }
322
615
  </script>
616
+
323
617
  {%- endif -%} {%- if site.testmode -%} {%- if page.lang == "hi" -%} {%-
324
618
  include monumetric/monumetric.html -%} {%- endif -%} {%- else -%} {%- include
325
619
  monumetric/monumetric.html -%} {%- endif -%} {%- include monumetric/ads.html
326
620
  -%} {%- if page.layout == "feature" or page.layout == "home" -%} {%- include
327
621
  monumetric/profitablecpmgate.html -%} {%- endif -%}
328
- </head>
622
+ </head>