jekyll-theme-yat 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_sass/yat/_base.scss +0 -1
- data/assets/js/main.js +4 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f1a0df8a085d4068122e1c1d12cf2d4154eccaff65eb22aaa4b9253d97d51c3
|
4
|
+
data.tar.gz: a38430895ae1a7c113f54193eaf0d46be0aebe8c1448c5c2af5c0011fcf35462
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b4bb4366a8570e0605c406f8bc1e7da8cbd2d742f3be02c04b2b6b3d2173f622e7690f9f6411ce28f387cd8bbcab3e83290c2d8f1eea8f9fb9bda82576d809
|
7
|
+
data.tar.gz: a22bd8258a0c0ed62554c7d6219e263a682a3e235ce1cc65e698b815c85a3eb14f55af526db76b48beae3a8933fef0b2c3439716d27bbc98b957da3fa69efcd6
|
data/_sass/yat/_base.scss
CHANGED
data/assets/js/main.js
CHANGED
@@ -67,16 +67,14 @@ document.addEventListener('DOMContentLoaded', function(event) {
|
|
67
67
|
break;
|
68
68
|
}
|
69
69
|
}
|
70
|
-
if (lang) {
|
71
|
-
block.
|
72
|
-
|
73
|
-
lang = block
|
74
|
-
.getAttribute('class')
|
75
|
-
.replace('hljs ', '');
|
70
|
+
if (!lang) {
|
71
|
+
cls = block.getAttribute('class');
|
72
|
+
lang = cls ? cls.replace('hljs ', '') : '';
|
76
73
|
}
|
77
74
|
if (lang.startsWith('language-')) {
|
78
75
|
lang = lang.substr(9);
|
79
76
|
}
|
77
|
+
block.setAttribute('class', 'hljs ' + lang);
|
80
78
|
block.parentNode.setAttribute('data-lang', lang);
|
81
79
|
hljs.highlightBlock(block);
|
82
80
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-yat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jeffreytse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|