appscms-tools-theme 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/post.html +13 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f60d0a7ac95021603539ea1b6ba0c382e24c084183068e459d708aa4defaf370
4
- data.tar.gz: 0ae036b548d8d9aa97611a624af2377933b39adbe2fe01f7d39dcc8f60aa3fd3
3
+ metadata.gz: 1e12588a26698fda1fb723d428da265bbffef57cc4c09876eb3fcb9766750abf
4
+ data.tar.gz: 77d35c54516dfb31f38663ed635f291f5c6ed15f74003ecff9bcc7aaff670d5a
5
5
  SHA512:
6
- metadata.gz: fa62a814af91f90882a9328baa0d60d603d0171a93ba0101887a5e392580cbcc466826bb3ecea0b650013d702686577818908802c724d2210bcf484c34f76829
7
- data.tar.gz: 744ca861c12add3a59c03ee945d84a9520004570ef366702069c4cd00254d9c9a689077f2e4a05e7b5b1014563ba8717f7b25baceef994f79791aeaa21e57d9e
6
+ metadata.gz: 58cdae00d3a94db905b890cf6ea02b4b6314909c36f1a39bed0ed456b980e72f7e4d3129d2758ff0dcba737669c4742668704a0d2a172ba6aabf7c02ae9b754a
7
+ data.tar.gz: f01cc56f3c6b059c60c696fbcfa3e7fa1fd42b5849437a8621b942ab15e9805e953794f888c0185857eeb6416b006be02e3869586d67207514b9bbd4b1fba65d
data/_layouts/post.html CHANGED
@@ -77,8 +77,8 @@
77
77
  </div>
78
78
 
79
79
  <div class="theseFeatures">
80
+
80
81
  {%- if page.URLS -%}
81
- {{page.URLS}}
82
82
  <h3 class="font-weight-bolder">Checkout out these features</h3>
83
83
  <br>
84
84
  {%- for item in page.URLS -%}
@@ -90,17 +90,25 @@
90
90
  <br>
91
91
 
92
92
  {% assign tools = site.pages | where_exp:"item","item.tool" %}
93
- {%- for item in tools limit: 10-%}
94
- {% if item.tool %}
93
+ {% assign allRandomUrls = "" | split: ',' %}
94
+ {%- for item in tools -%}
95
+ {%- if item.lang=="en" -%}
96
+ {% assign allRandomUrls = allRandomUrls | push: item.url %}
97
+ {%- endif -%}
98
+ {%- endfor -%}
99
+
100
+ {%- for url in allRandomUrls limit: 10-%}
101
+ {% if url %}
95
102
  <p class="mb-3">
96
- <a class="featureLink" style="font-size: 13px" href="{{item.url }}">
97
- {%- assign name = item.url | replace: '/', ' ' | replace: '-', ' ' -%}
103
+ <a class="featureLink" style="font-size: 13px" href="{{url }}">
104
+ {%- assign name = url | replace: '/', ' ' | replace: '-', ' ' -%}
98
105
  {{ name }}
99
106
  </a>
100
107
  </p>
101
108
  {%- endif -%}
102
109
  {%- endfor -%}
103
110
  {%- endif -%}
111
+
104
112
  </div>
105
113
  </div>
106
114
  </div>
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: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms