appscms-tools-theme 0.8.1 → 0.8.2

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: 97d670d16ac3abd6425d391b5f5f39554fd6945920671fff56d08889778f4238
4
- data.tar.gz: 59a520281955bfdee18ea73ec124b0d1e890a7974599c6f36acccce59cdad98e
3
+ metadata.gz: a07e94df982cd20132b67b1418d359dd9b94122d067b924d8afebdf1af4073d4
4
+ data.tar.gz: 026b731d6cb1691a38cb738792d5d7ddf9bb7f8c862e632b29b5fdcd16a9cce5
5
5
  SHA512:
6
- metadata.gz: 7a12a41e4e134a36596c6f27ef8aed4c6be7430c541f8d9455fc36f87c16d7f4462e44a32e2b803db6693b4a3e5b192df1713f9439380f3a730ac52d416b6080
7
- data.tar.gz: 2f8081437fc34c958bda52da3f9e24ab5c7da028e2747f923ae24da0df96b74924206bc6c1a518066e92eced0eb41164667a6f17df5a0975552a1ebbfdd9ad8a
6
+ metadata.gz: 4cbbc114db37e121f919ae8db454403f1d2f19cf102b8fe956dceddc571f9dd2dcff70f034e0f3572575b6482d01d9fd8292e94570882bfdbcb0913a0bbd8118
7
+ data.tar.gz: 31167c2105b41e6c04a6cb2a9ca3b236a5178156d2cbcb96ad1ef5e86074d76e5f88b48cbf6638d8f369f6587d218c024db9261bf3d07eb103e81bd275ac0a2b
@@ -1 +1 @@
1
- {"tools":[{"name":"split-pdf","rating":"4.14","votes":7},{"name":"compress-pdf","rating":"4.86","votes":7}]}
1
+ {"tools":[{"name":"compress-pdf","rating":"4.81","votes":26},{"name":"split-pdf-rating-check","rating":"5.00","votes":2}]}
@@ -23,8 +23,16 @@
23
23
  "@type": "AggregateRating",
24
24
  "worstRating":"1",
25
25
  "bestRating":"5",
26
- "ratingValue": "{{rating}}",
27
- "ratingCount": "{{votes}}"
26
+ "ratingValue": {%- if rating=='NaN' -%}
27
+ "5"
28
+ {%- else -%}
29
+ "{{rating}}"
30
+ {%- endif -%},
31
+ "ratingCount": {%- if votes== 0 -%}
32
+ "1"
33
+ {%- else -%}
34
+ "{{votes}}"
35
+ {%- endif -%}
28
36
  },
29
37
  "offers": {
30
38
  "@type": "Offer",
@@ -34,7 +34,9 @@
34
34
  <meta data-rh="true" name="twitter:title" content="{{title}}">
35
35
  <meta data-rh="true" name="twitter:description" content="{{description}}">
36
36
  <meta data-rh="true" name="twitter:image:src" content="{{site.url}}{{favicon}}">
37
+ {%- if site.pwa -%}
37
38
  <link rel="manifest" href="./manifest.json">
39
+ {%- endif -%}
38
40
  {%- for item in variable.langsupport -%}
39
41
  <link data-rh="true" rel="alternate" href="{{site.url | append: item.permalink}}" hreflang="{{item.hreflang}}">
40
42
  {%- endfor -%}
@@ -120,6 +122,7 @@
120
122
  {%- endif -%}
121
123
  <!-- GA -->
122
124
  {%- include google-analytics.html -%}
125
+ {%- if site.pwa -%}
123
126
  <script>
124
127
  if ('serviceWorker' in navigator) {
125
128
  window.addEventListener('load', () => {
@@ -129,5 +132,7 @@
129
132
  })
130
133
  }
131
134
  </script>
135
+ {%- endif -%}
136
+
132
137
  </head>
133
138
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms