jekyll-theme-noesya 1.0.35 → 1.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/js/is-webp-supported.js +12 -0
- data/_layouts/default.html +10 -5
- data/_sass/components/menu.sass +0 -1
- data/assets/js/main.js +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce2003ad79e64ff3389ff5ff08a571cd58b348b3be9fbe1a697e9f88480e0ff
|
4
|
+
data.tar.gz: e7a2f82dfcca1b3d7486cc79c122dcf0ab2681671994df059c919403eaf4c260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61bb7429417601aad7f0e139d148143b9c96ea5e1c3f4850b85f43989b0d747a56908cf74c8640f53d84ed38ae721ce55c6f8ed769719cd4cbe8fd10d9cf596f
|
7
|
+
data.tar.gz: aedbddbcfceae6b0cb437d111d4986a879caa4c6461bbc0debfad9587fe28e6704df7eb441366be9882fd7bf80b42e57240b89f79833dc34be5e4d27adf00491
|
@@ -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
|
+
}());
|
data/_layouts/default.html
CHANGED
@@ -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>
|
data/_sass/components/menu.sass
CHANGED
data/assets/js/main.js
CHANGED
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.
|
4
|
+
version: 1.0.39
|
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
|