jekyll-theme-yat 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,22 +4,18 @@
4
4
 
5
5
  // Default theme colors
6
6
  $theme-colors: (
7
+ coolblack: #090a0b,
7
8
  spacegrey: #353535,
8
- inkpurple: #543581,
9
- aquablue: #00aaa0,
10
- azureblue: #2863b1,
11
- gracered: #a12a50,
12
- aloegreen: #3d9e56,
13
- rustbrown: #795548,
9
+ snowwhite: #ffffff,
14
10
  );
15
11
 
16
12
  $theme-name: "{{ site.theme_color }}";
17
- $theme-color: map-get($theme-colors, "spacegrey");
13
+ $theme-color: map-get($theme-colors, "snowwhite");
18
14
 
19
15
  @if map-has-key($theme-colors, $theme-name) {
20
16
  $theme-color: map-get($theme-colors, $theme-name);
21
17
  } @else if str-index($theme-name, "#") == 1 {
22
- $theme-color: {{ site.theme_color | default: '#353535' }};
18
+ $theme-color: {{ site.theme_color | default: '#ffffff' }};
23
19
  }
24
20
 
25
21
  @import "yat";
@@ -55,3 +55,27 @@ function smoothScrollTo(y, time) {
55
55
  })();
56
56
  }
57
57
  }
58
+
59
+ // Init highlight js
60
+ document.addEventListener('DOMContentLoaded', function(event) {
61
+ document.querySelectorAll('pre code').forEach((block) => {
62
+ var outer = block.parentElement.parentElement.parentElement;
63
+ var lang = block.getAttribute('data-lang');
64
+ for (var cls of outer.classList) {
65
+ if (cls.startsWith('language-')) {
66
+ lang = cls;
67
+ break;
68
+ }
69
+ }
70
+ if (!lang) {
71
+ cls = block.getAttribute('class');
72
+ lang = cls ? cls.replace('hljs ', '') : '';
73
+ }
74
+ if (lang.startsWith('language-')) {
75
+ lang = lang.substr(9);
76
+ }
77
+ block.setAttribute('class', 'hljs ' + lang);
78
+ block.parentNode.setAttribute('data-lang', lang);
79
+ hljs.highlightBlock(block);
80
+ });
81
+ });
metadata CHANGED
@@ -1,57 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-yat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffreytse
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '1.16'
22
+ version: '3.0'
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '1.16'
29
+ version: '1.6'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - "~>"
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '12.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '13.0'
34
43
  type: :development
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - "~>"
47
+ - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: '12.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '13.0'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: jekyll
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
- - - "~>"
57
+ - - ">"
46
58
  - !ruby/object:Gem::Version
47
- version: '3.8'
59
+ version: '3.5'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '5.0'
48
63
  type: :runtime
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
- - - "~>"
67
+ - - ">"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.5'
70
+ - - "<"
53
71
  - !ruby/object:Gem::Version
54
- version: '3.8'
72
+ version: '5.0'
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: jekyll-feed
57
75
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +140,7 @@ dependencies:
122
140
  - - "~>"
123
141
  - !ruby/object:Gem::Version
124
142
  version: '0.2'
125
- description:
143
+ description:
126
144
  email:
127
145
  - jeffreytse.mail@gmail.com
128
146
  executables: []
@@ -144,6 +162,7 @@ files:
144
162
  - _includes/functions.html
145
163
  - _includes/functions/get_categories.html
146
164
  - _includes/functions/get_datetimes.html
165
+ - _includes/functions/get_reading_time.html
147
166
  - _includes/functions/get_tags.html
148
167
  - _includes/functions/get_value.html
149
168
  - _includes/functions/log.html
@@ -165,6 +184,7 @@ files:
165
184
  - _includes/views/segments.html
166
185
  - _includes/views/site-brand.html
167
186
  - _layouts/404.html
187
+ - _layouts/about.html
168
188
  - _layouts/archives.html
169
189
  - _layouts/articles.html
170
190
  - _layouts/categories.html
@@ -179,15 +199,15 @@ files:
179
199
  - _sass/yat.scss
180
200
  - _sass/yat/_base.scss
181
201
  - _sass/yat/_layout.scss
182
- - _sass/yat/_syntax-highlighting.scss
183
202
  - assets/css/main.scss
203
+ - assets/images/banners/home.jpeg
184
204
  - assets/js/main.js
185
205
  homepage: https://github.com/jeffreytse/jekyll-theme-yat
186
206
  licenses:
187
207
  - MIT
188
208
  metadata:
189
209
  plugin_type: theme
190
- post_install_message:
210
+ post_install_message:
191
211
  rdoc_options: []
192
212
  require_paths:
193
213
  - lib
@@ -202,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
222
  - !ruby/object:Gem::Version
203
223
  version: '0'
204
224
  requirements: []
205
- rubygems_version: 3.0.6
206
- signing_key:
225
+ rubygems_version: 3.1.4
226
+ signing_key:
207
227
  specification_version: 4
208
- summary: Yet another theme for personal writers.
228
+ summary: Yet another theme for elegant writers with modern flat style.
209
229
  test_files: []
@@ -1,105 +0,0 @@
1
- /**
2
- * Syntax highlighting styles
3
- */
4
-
5
- .highlight {
6
- color: #c7c7c7;
7
- @extend %vertical-rhythm;
8
-
9
- .c { color: #998; font-style: italic } // Comment
10
- .err { color: #a61717; background-color: #e3d2d2 } // Error
11
- .k { font-weight: bold } // Keyword
12
- .o { font-weight: bold } // Operator
13
- .cm { color: #998; font-style: italic } // Comment.Multiline
14
- .cp { color: #999; font-weight: bold } // Comment.Preproc
15
- .c1 { color: #998; font-style: italic } // Comment.Single
16
- .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
17
- .gd { color: #000; background-color: #fdd } // Generic.Deleted
18
- .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
19
- .ge { font-style: italic } // Generic.Emph
20
- .gr { color: #a00 } // Generic.Error
21
- .gh { color: #999 } // Generic.Heading
22
- .gi { color: #000; background-color: #dfd } // Generic.Inserted
23
- .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
24
- .go { color: #888 } // Generic.Output
25
- .gp { color: #555 } // Generic.Prompt
26
- .gs { font-weight: bold } // Generic.Strong
27
- .gu { color: #aaa } // Generic.Subheading
28
- .gt { color: #a00 } // Generic.Traceback
29
- .kc { font-weight: bold } // Keyword.Constant
30
- .kd { color: #0fdcdc; font-weight: bold } // Keyword.Declaration
31
- .kp { font-weight: bold } // Keyword.Pseudo
32
- .kr { font-weight: bold } // Keyword.Reserved
33
- .kt { color: #a7a7a7; font-weight: bold } // Keyword.Type
34
- .m { color: #099 } // Literal.Number
35
- .s { color: #d0c55c } // Literal.String
36
- .na { color: #a6e22e } // Name.Attribute
37
- .nb { color: #6cc117 } // Name.Builtin
38
- .nc { color: #4682b4; font-weight: bold } // Name.Class
39
- .no { color: #a6e22e } // Name.Constant
40
- .ni { color: #800080 } // Name.Entity
41
- .ne { color: #e04b9b; font-weight: bold } // Name.Exception
42
- .nf { color: #e04b9b; font-weight: bold } // Name.Function
43
- .nn { color: #a6e22e } // Name.Namespace
44
- .nt { color: #4ec2e4 } // Name.Tag
45
- .nv { color: #a6e22e } // Name.Variable
46
- .ow { font-weight: bold } // Operator.Word
47
- .w { color: #bbb } // Text.Whitespace
48
- .mf { color: #099 } // Literal.Number.Float
49
- .mh { color: #099 } // Literal.Number.Hex
50
- .mi { color: #099 } // Literal.Number.Integer
51
- .mo { color: #099 } // Literal.Number.Oct
52
- .sb { color: #d0c55c } // Literal.String.Backtick
53
- .sc { color: #d0c55c } // Literal.String.Char
54
- .sd { color: #d0c55c } // Literal.String.Doc
55
- .s2 { color: #d0c55c } // Literal.String.Double
56
- .se { color: #d0c55c } // Literal.String.Escape
57
- .sh { color: #d0c55c } // Literal.String.Heredoc
58
- .si { color: #d0c55c } // Literal.String.Interpol
59
- .sx { color: #d0c55c } // Literal.String.Other
60
- .sr { color: #009926 } // Literal.String.Regex
61
- .s1 { color: #d0c55c } // Literal.String.Single
62
- .ss { color: #990073 } // Literal.String.Symbol
63
- .bp { color: #999 } // Name.Builtin.Pseudo
64
- .vc { color: #a6e22e } // Name.Variable.Class
65
- .vg { color: #a6e22e } // Name.Variable.Global
66
- .vi { color: #a6e22e } // Name.Variable.Instance
67
- .il { color: #099 } // Literal.Number.Integer.Long
68
- }
69
-
70
- code .rouge-table {
71
- @extend .highlight;
72
- }
73
-
74
- code.highlighter-rouge {
75
- color: white;
76
- background: #676767;
77
- border: none;
78
- padding: 2px 4px;
79
- }
80
-
81
- figure.highlight pre {
82
- border-radius: 3px;
83
-
84
- code table.rouge-table {
85
- margin: 0;
86
-
87
- td {
88
- border: 1px solid #efefef86;
89
- }
90
-
91
- pre {
92
- margin: 0;
93
- padding: 0;
94
- }
95
-
96
- .gutter.gl {
97
- padding: 0;
98
-
99
- .lineno {
100
- padding: 2px;
101
- text-align: center;
102
- }
103
- }
104
- }
105
- }