appscms-tools-theme 1.5.3 → 1.5.4

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 +9 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9a31a2515009e8ad6ef257e902f89626e4bf80d70419fef786cd3848168debb
4
- data.tar.gz: 6385913a3d369e083bc7bef211bb431fbb58cb2e79551ca6e2708bbc2aff32d8
3
+ metadata.gz: 15f57ed0f27144633d7fa89e1e7db3771579d19fed5eb24637601cd8de642e18
4
+ data.tar.gz: 0f244555c7f5d5afb031c8069587e35ecf0e0f2aac41a126e12e3278e075dc5b
5
5
  SHA512:
6
- metadata.gz: 90f75473a1e4af618c79c8de4df29b94153f3682a9092313da762ba0b8874909c6a5816be6a58065729609af119729a42bc1785ae7b837adce60ce877e19c799
7
- data.tar.gz: 12b19acf1f205ef115ce2b9ba787afc414fc15483fe320259dd02b578c6ad2d9cb0fee5340ee48f06d6ce423d920a479dc0b24e229451084c004533e0aeeb4bf
6
+ metadata.gz: 75ee3b7b3b2aff5f0577e66cefc4621557937b56d02f0a8b6cfc5efc90901b8c6f917c9fda45aa4e86dbe385fc708520dd2964e11f27c56943bfaaf55528d183
7
+ data.tar.gz: 20053f11cc45d1db1cabb8ddea5cc0bbb8e5504eec88048392a32b1d04672b14fcfeaa4114584d9fbf9a48f3f125830aafed2f5bf007e9c6017db4bdfde00850
data/_layouts/post.html CHANGED
@@ -131,6 +131,15 @@
131
131
  {% include script.html %}
132
132
  <script src="{{ '/assets/js/TopScroll.js' | relative_url }}" {%- if site.crossorigin -%} crossorigin {%- endif
133
133
  -%}></script>
134
+ {%- if site.crossorigin -%}
135
+ <script>
136
+ const getImages = document.getElementsByTagName('img')
137
+ Array.from(getImages).map(item => {
138
+ item.crossOrigin = 'anonymous'
139
+ })
140
+ </script>
141
+ {%- endif -%}
142
+
134
143
  </body>
135
144
 
136
145
  </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.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-11 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll