jekyll-theme-noesya 1.0.36 → 1.0.40

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: 000e17c537a4da67f68ca4cd298bcd1a978e7fe8097034292f0ff176ea49bb57
4
- data.tar.gz: b914e9dfe1147cdaa4a8c082053e438143186964a6b98a69ccd62c487600dac4
3
+ metadata.gz: 0c17d41085d722c6de1b374dcfbb862de3051a84b28832496d110cbeef753e31
4
+ data.tar.gz: d7af9f4ad8590347ff2c99e7498bb19af50ac2ad5c81cc04f16e9859680db4e7
5
5
  SHA512:
6
- metadata.gz: 7ce8851dd5e7e40f89095a63ccb09e902e475274ffa29da4d25896d0171658f490268596a4c48cd379b4fff820a3cb293d771362d6019571f741d48de1266867
7
- data.tar.gz: f64959c35dc8d02d5a2518fed033dcac7647bbe01486cd9a659ea979e7e79615568fc1eed42c96f23a135e10d84bf7181d5984f1798d5522fb8b7d8fa5c1ac1d
6
+ metadata.gz: 4fa106cd616fd35135c226160d024f93f8b9f427230e71e96542aa94f1400733de15e8b90a88584a202ed15de4d88e252dac2832dc5672910dca1442b26e5302
7
+ data.tar.gz: 562c3ac8b379516f1e9c667dcde898c885c432692255229dba3bc8287197ac46691af18e98b7055fb348bcb1d95d9878072fe21fdbabfb2b3c31d31394e4d307
@@ -0,0 +1,12 @@
1
+
2
+ (function () {
3
+ 'use strict';
4
+ var isWebpSupported = false,
5
+ canvas = document.createElement('canvas');
6
+ if (canvas.getContext) {
7
+ isWebpSupported = canvas.toDataURL('image/webp').indexOf('data:image/webp') > -1;
8
+ }
9
+ if (!isWebpSupported) {
10
+ document.body.classList.add('no-webp');
11
+ }
12
+ }());
@@ -14,12 +14,8 @@
14
14
  <!-- CSS -->
15
15
  <link rel="stylesheet" href="/assets/css/main.css">
16
16
 
17
- {% comment %}
18
- Avoid CSS transitions to be fired on load
19
- {% endcomment %}
20
- <script> </script>
21
17
  </head>
22
- <body>
18
+ <body class="is-loading">
23
19
  {% include header.html %}
24
20
  <main aria-label="Content" class="{{ page.class | default: layout.class }}">
25
21
  {{ content }}
@@ -30,5 +26,14 @@
30
26
  {% unless site.options.no_js %}
31
27
  <script src="/assets/js/main.js"></script>
32
28
  {% endunless %}
29
+
30
+ {% comment %}
31
+ Avoid CSS transitions to be fired on load
32
+ {% endcomment %}
33
+ <script>
34
+ window.addEventListener('load', function() {
35
+ document.body.classList.remove('is-loading');
36
+ });
37
+ </script>
33
38
  </body>
34
39
  </html>
@@ -5,3 +5,5 @@ main.index
5
5
  @include media-breakpoint-up(lg)
6
6
  font-size: px2rem(55)
7
7
  line-height: px2rem(75)
8
+ a
9
+ text-decoration-thickness: 2px
data/assets/js/main.js CHANGED
@@ -2,6 +2,8 @@
2
2
  layout:
3
3
  ---
4
4
 
5
+ {% include js/is-webp-supported.js %}
6
+
5
7
  {% include js/menu-burger.js %}
6
8
 
7
9
  {%- if site.options.notes -%}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-noesya
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.36
4
+ version: 1.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -96,6 +96,7 @@ files:
96
96
  - _includes/footer.html
97
97
  - _includes/header.html
98
98
  - _includes/js/hover-navigation-links.js
99
+ - _includes/js/is-webp-supported.js
99
100
  - _includes/js/menu-burger.js
100
101
  - _includes/js/notes.js
101
102
  - _includes/js/paragraphs-index.js