appscms-tools-theme 1.8.0 → 1.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: b6f0810461afa9f030b79d7b771f237b7ff2fe509652aa596c57e3b38a9fd83f
4
- data.tar.gz: 93a182e45f403aa30d7b6ca2ffb55bc2812f5121a8f1b4c63666413d4f136848
3
+ metadata.gz: b89b6a899aec8802a57677cfbd86b61093b3d02b926e50a5704a7da6999c1925
4
+ data.tar.gz: 554e7b7d571c8b8189d280f97e0b0d03535f9ea7798966d1ede84300d0158c91
5
5
  SHA512:
6
- metadata.gz: 2f2443aa80cd9a69ee1a35eb2b4a4e45fcfbcd3bbae8b5fea8eeb68bf2510d49a2873fcdef1629998adac0e55f828a0ab4fa1e59f4f01f18966a86396c90839d
7
- data.tar.gz: 94dfcc7e4e6f51b868a2ba1330d34a7a08d8c9475bf961c377d929e0b92457a9c46914347913fa4dea275ba2e7334309239a7e9edb5aa76581a09e9771cf6809
6
+ metadata.gz: 2d52927a534670a74d7f2185b7946057354570c4d9ba4f337e84d818abdba223021a3a086dcb73cdf3378a8c1151d76a3e9a8934720f66278c7ea26f46e0c297
7
+ data.tar.gz: ad664bbab49cf1c468557697acc10b34bdc41a97b59885c8ab2cc4f3dee37fe637c2ff1e236960717f995d742103b432f838302361a650fcdcde0b68d6708403
@@ -2,6 +2,12 @@
2
2
  "Language": "English",
3
3
  "feature": "compress-pdf",
4
4
  "htmlLangAtt": "en",
5
+ "categories": [
6
+ "Scrabble"
7
+ ],
8
+ "tags": [
9
+ "wordswithletters"
10
+ ],
5
11
  "H1": "Set alarm for $variable minutes from now",
6
12
  "H2": "Simplest online alarm clock to set alarms. Do not close browser tab.",
7
13
  "TITLE": "Set alarm for $variable minutes from now",
@@ -10,27 +10,39 @@
10
10
  {% assign maxRelated = 6 %}
11
11
  {% assign minCommonTags = 1 %}
12
12
  {% assign maxRelatedCounter = 0 %}
13
-
13
+ {% assign file = page.fileName %}
14
+ {% assign lang = "en" %}
15
+ {% assign folder = page.folderName %}
16
+ {%- if site.data[folder][lang][file].categories -%}
17
+ {% assign categories= site.data[folder][lang][file].categories %}
18
+ {%- else -%}
19
+ {% assign categories= page.categories %}
20
+ {%- endif -%}
21
+ {%- if site.data[folder][lang][file].tags -%}
22
+ {% assign tags= site.data[folder][lang][file].tags %}
23
+ {%- else -%}
24
+ {% assign tags= page.tags %}
25
+ {%- endif -%}
14
26
  <div class="row">
15
27
  {% for post in blogData %}
16
28
  {% assign sameTagCount = 0 %}
17
29
  {% assign commonTags = '' %}
18
30
 
19
31
 
20
- {%- if page.categories-%}
32
+ {%- if categories-%}
21
33
  {% for category in post.categories %}
22
34
  {% if post.url != page.url %}
23
- {% if page.categories contains category %}
35
+ {% if categories contains category %}
24
36
  {% assign sameTagCount = sameTagCount | plus: 1 %}
25
37
  {% endif %}
26
38
  {% endif %}
27
39
  {% endfor %}
28
40
  {%- endif -%}
29
41
 
30
- {%- if page.tags -%}
42
+ {%- if tags -%}
31
43
  {% for tag in post.tags %}
32
44
  {% if post.url != page.url %}
33
- {% if page.tags contains tag %}
45
+ {% if tags contains tag %}
34
46
  {% assign sameTagCount = sameTagCount | plus: 1 %}
35
47
  {% endif %}
36
48
  {%- endif -%}
@@ -91,23 +103,23 @@
91
103
  {%- if remamingPosts > 0 -%}
92
104
  {%- assign tagData = true -%}
93
105
  {%- assign catData = true -%}
94
- {%- if page.tags -%}
106
+ {%- if tags -%}
95
107
  {% for tag in post.tags %}
96
108
  {% if post.url != page.url %}
97
- {% if page.tags contains tag %}
109
+ {% if tags contains tag %}
98
110
  {%- assign tagData = false -%}
99
111
  {%- break -%}
100
112
  {% endif %}
101
113
  {%- endif -%}
102
114
  {% endfor %}
103
115
  {%- endif -%}
104
- {%- if page.categories-%}
116
+ {%- if categories-%}
105
117
  {%- if tagData == false -%}
106
118
  {%- continue -%}
107
119
  {%- else -%}
108
120
  {% for category in post.categories %}
109
121
  {% if post.url != page.url %}
110
- {% if page.categories contains category %}
122
+ {% if categories contains category %}
111
123
  {%- assign catData = false -%}
112
124
  {%- break -%}
113
125
  {% endif %}
@@ -1,6 +1,11 @@
1
+ {%- if page.matchurls -%}
1
2
  {%- assign matchurls
2
- ="id&&da&&de&&en&&es&&fr&&it&&nl&&pl&&pt&&sv&&vi&&tr&&ru&&uk&&ar&&hi&&th&&ko&&ja&&zh&&zh-TW&&zh-tw"
3
- | split: '&&' -%}
3
+ = page.matchurls | split: '&&' -%}
4
+ {%- else -%}
5
+ {%- assign matchurls
6
+ = "id&&da&&de&&en&&es&&fr&&it&&nl&&pl&&pt&&sv&&vi&&tr&&ru&&uk&&ar&&hi&&th&&ko&&ja&&zh&&zh-TW&&zh-tw" | split: '&&' -%}
7
+ {%- endif -%}
8
+
4
9
  {% assign id = "id&&Bahasa Indonesia" | split: '&&' %}
5
10
  {% assign ms-MY = "ms-MY&&Bahasa Malaysia" | split: '&&' %}
6
11
  {% assign da = "da&&Dansk" | split: '&&' %}
@@ -9,27 +9,39 @@
9
9
  {% assign maxRelated = 6 %}
10
10
  {% assign minCommonTags = 1 %}
11
11
  {% assign maxRelatedCounter = 0 %}
12
-
12
+ {% assign file = page.fileName %}
13
+ {% assign lang = "en" %}
14
+ {% assign folder = page.folderName %}
15
+ {%- if site.data[folder][lang][file].categories -%}
16
+ {% assign categories= site.data[folder][lang][file].categories %}
17
+ {%- else -%}
18
+ {% assign categories= page.categories %}
19
+ {%- endif -%}
20
+ {%- if site.data[folder][lang][file].tags -%}
21
+ {% assign tags= site.data[folder][lang][file].tags %}
22
+ {%- else -%}
23
+ {% assign tags= page.tags %}
24
+ {%- endif -%}
13
25
  <div class="row">
14
26
  {% for post in site.posts %}
15
27
  {% assign sameTagCount = 0 %}
16
28
  {% assign commonTags = '' %}
17
29
 
18
30
 
19
- {%- if page.categories-%}
31
+ {%- if categories -%}
20
32
  {% for category in post.categories %}
21
33
  {% if post.url != page.url %}
22
- {% if page.categories contains category %}
34
+ {% if categories contains category %}
23
35
  {% assign sameTagCount = sameTagCount | plus: 1 %}
24
36
  {% endif %}
25
37
  {% endif %}
26
38
  {% endfor %}
27
39
  {%- endif -%}
28
40
 
29
- {%- if page.tags -%}
41
+ {%- if tags -%}
30
42
  {% for tag in post.tags %}
31
43
  {% if post.url != page.url %}
32
- {% if page.tags contains tag %}
44
+ {% if tags contains tag %}
33
45
  {% assign sameTagCount = sameTagCount | plus: 1 %}
34
46
  {% endif %}
35
47
  {%- endif -%}
@@ -90,23 +102,23 @@
90
102
  {%- if remamingPosts > 0 -%}
91
103
  {%- assign tagData = true -%}
92
104
  {%- assign catData = true -%}
93
- {%- if page.tags -%}
105
+ {%- if tags -%}
94
106
  {% for tag in post.tags %}
95
107
  {% if post.url != page.url %}
96
- {% if page.tags contains tag %}
108
+ {% if tags contains tag %}
97
109
  {%- assign tagData = false -%}
98
110
  {%- break -%}
99
111
  {% endif %}
100
112
  {%- endif -%}
101
113
  {% endfor %}
102
114
  {%- endif -%}
103
- {%- if page.categories-%}
115
+ {%- if categories -%}
104
116
  {%- if tagData == false -%}
105
117
  {%- continue -%}
106
118
  {%- else -%}
107
119
  {% for category in post.categories %}
108
120
  {% if post.url != page.url %}
109
- {% if page.categories contains category %}
121
+ {% if categories contains category %}
110
122
  {%- assign catData = false -%}
111
123
  {%- break -%}
112
124
  {% endif %}
@@ -2,8 +2,6 @@
2
2
  {% assign lang = page.lang %}
3
3
  {% assign folder = page.folderName %}
4
4
  {% assign featureData= site.data[folder][lang][file] %}
5
-
6
-
7
5
  <!DOCTYPE html>
8
6
  <html lang="{{page.lang}}">
9
7
  {% include head/index.html %}
@@ -182,13 +180,24 @@
182
180
  {%- include fileformat/comparisonfiles.html -%}
183
181
  </div>
184
182
  {%- endif -%}
185
- {%- if page.categories.size> 0 or page.tags.size>0-%}
183
+ {%- assign langen = "en" -%}
184
+ {%- if site.data[folder][langen][file].categories -%}
185
+ {% assign categories= site.data[folder][langen][file].categories %}
186
+ {%- else -%}
187
+ {% assign categories= page.categories %}
188
+ {%- endif -%}
189
+ {%- if site.data[folder][langen][file].tags -%}
190
+ {% assign tags= site.data[folder][langen][file].tags %}
191
+ {%- else -%}
192
+ {% assign tags= page.tags %}
193
+ {%- endif -%}
194
+ {%- if categories.size> 0 or tags.size>0-%}
186
195
  {%- include section/related_categories_post.html -%}
187
196
  {%- else -%}
188
197
  {%- include section/recent_posts.html -%}
189
198
  {% endif %}
190
199
  {%- if site.customblogdata -%}
191
- {%- if page.categories.size> 0 or page.tags.size>0-%}
200
+ {%- if categories.size> 0 or tags.size>0-%}
192
201
  {%- include customblog/relatedposts.html -%}
193
202
  {%- else -%}
194
203
  {%- include customblog/recentposts.html -%}
data/_layouts/home.html CHANGED
@@ -179,13 +179,24 @@
179
179
  {%- include fileformat/comparisonfiles.html -%}
180
180
  </div>
181
181
  {%- endif -%}
182
- {%- if page.categories.size> 0 or page.tags.size>0-%}
182
+ {%- assign langen = "en" -%}
183
+ {%- if site.data[folder][langen][file].categories -%}
184
+ {% assign categories= site.data[folder][langen][file].categories %}
185
+ {%- else -%}
186
+ {% assign categories= page.categories %}
187
+ {%- endif -%}
188
+ {%- if site.data[folder][langen][file].tags -%}
189
+ {% assign tags= site.data[folder][langen][file].tags %}
190
+ {%- else -%}
191
+ {% assign tags= page.tags %}
192
+ {%- endif -%}
193
+ {%- if categories.size> 0 or tags.size>0-%}
183
194
  {%- include section/related_categories_post.html -%}
184
195
  {%- else -%}
185
196
  {%- include section/recent_posts.html -%}
186
197
  {% endif %}
187
198
  {%- if site.customblogdata -%}
188
- {%- if page.categories.size> 0 or page.tags.size>0-%}
199
+ {%- if categories.size> 0 or tags.size>0-%}
189
200
  {%- include customblog/relatedposts.html -%}
190
201
  {%- else -%}
191
202
  {%- include customblog/recentposts.html -%}
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.8.0
4
+ version: 1.8.2
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-01-17 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll