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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b240330b198155ad46585d5205c0d08f794cdd5267edb1d3d9d07ed8e228f1cd
4
- data.tar.gz: cbf130a4d7beb75c8d68c44b7621ba0c140b6ea839e4521f1ce7e4a8e57a0484
3
+ metadata.gz: 5f1a0df8a085d4068122e1c1d12cf2d4154eccaff65eb22aaa4b9253d97d51c3
4
+ data.tar.gz: a38430895ae1a7c113f54193eaf0d46be0aebe8c1448c5c2af5c0011fcf35462
5
5
  SHA512:
6
- metadata.gz: 7e7475aa560905263a4e4448b4ba7d4e4eafe36ceb93a851637ae8d4983b6ca499b270fc729ac27ce3d3b14d5108eb48c3841bbe5b2d69191b97b78334bca975
7
- data.tar.gz: 67f7984dd1c2620267a8b0808b48ce7b6ee8ad45330739b1f69c393aef99f3ee995ccd016f33d01b77e40197da630aec5fc8cc1604f9d2fb618d7616b36c3845
6
+ metadata.gz: 13b4bb4366a8570e0605c406f8bc1e7da8cbd2d742f3be02c04b2b6b3d2173f622e7690f9f6411ce28f387cd8bbcab3e83290c2d8f1eea8f9fb9bda82576d809
7
+ data.tar.gz: a22bd8258a0c0ed62554c7d6219e263a682a3e235ce1cc65e698b815c85a3eb14f55af526db76b48beae3a8933fef0b2c3439716d27bbc98b957da3fa69efcd6
@@ -110,7 +110,6 @@ a {
110
110
  text-decoration: none;
111
111
 
112
112
  &:hover {
113
- color: $text-color;
114
113
  text-decoration: underline;
115
114
  }
116
115
 
@@ -67,16 +67,14 @@ document.addEventListener('DOMContentLoaded', function(event) {
67
67
  break;
68
68
  }
69
69
  }
70
- if (lang) {
71
- block.setAttribute('class', 'hljs ' + lang);
72
- } else {
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2020-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler