jekyll-theme-yat 1.2.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -9
- data/_data/translate_langs.yml +0 -4
- data/_includes/extensions/comments/gitment.html +2 -2
- data/_includes/extensions/hashlocate.html +10 -7
- data/_includes/functions/get_reading_time.html +41 -0
- data/_includes/head.html +8 -1
- data/_includes/sidebar/article-menu.html +18 -8
- data/_includes/views/article.html +0 -2
- data/_includes/views/banner.html +3 -36
- data/_includes/views/header.html +2 -4
- data/_includes/views/pagination.html +16 -3
- data/_includes/views/paginator.html +10 -6
- data/_includes/views/post-header.html +16 -2
- data/_layouts/articles.html +1 -1
- data/_layouts/post.html +40 -33
- data/_sass/misc/article-menu.scss +28 -14
- data/_sass/misc/common-list.scss +6 -8
- data/_sass/misc/google-translate.scss +14 -3
- data/_sass/yat.scss +11 -12
- data/_sass/yat/_base.scss +47 -18
- data/_sass/yat/_layout.scss +325 -28
- data/assets/css/main.scss +4 -8
- data/assets/js/main.js +26 -0
- metadata +23 -9
- data/_sass/yat/_syntax-highlighting.scss +0 -105
data/assets/css/main.scss
CHANGED
@@ -4,22 +4,18 @@
|
|
4
4
|
|
5
5
|
// Default theme colors
|
6
6
|
$theme-colors: (
|
7
|
+
coolblack: #090a0b,
|
7
8
|
spacegrey: #353535,
|
8
|
-
|
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, "
|
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: '#
|
18
|
+
$theme-color: {{ site.theme_color | default: '#ffffff' }};
|
23
19
|
}
|
24
20
|
|
25
21
|
@import "yat";
|
data/assets/js/main.js
CHANGED
@@ -55,3 +55,29 @@ 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
|
+
block.setAttribute('class', 'hljs ' + lang);
|
72
|
+
} else {
|
73
|
+
lang = block
|
74
|
+
.getAttribute('class')
|
75
|
+
.replace('hljs ', '');
|
76
|
+
}
|
77
|
+
if (lang.startsWith('language-')) {
|
78
|
+
lang = lang.substr(9);
|
79
|
+
}
|
80
|
+
block.parentNode.setAttribute('data-lang', lang);
|
81
|
+
hljs.highlightBlock(block);
|
82
|
+
});
|
83
|
+
});
|
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
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jeffreytse
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,7 +108,21 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.1'
|
111
|
-
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: jekyll-spaceship
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.2'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.2'
|
125
|
+
description:
|
112
126
|
email:
|
113
127
|
- jeffreytse.mail@gmail.com
|
114
128
|
executables: []
|
@@ -130,6 +144,7 @@ files:
|
|
130
144
|
- _includes/functions.html
|
131
145
|
- _includes/functions/get_categories.html
|
132
146
|
- _includes/functions/get_datetimes.html
|
147
|
+
- _includes/functions/get_reading_time.html
|
133
148
|
- _includes/functions/get_tags.html
|
134
149
|
- _includes/functions/get_value.html
|
135
150
|
- _includes/functions/log.html
|
@@ -165,7 +180,6 @@ files:
|
|
165
180
|
- _sass/yat.scss
|
166
181
|
- _sass/yat/_base.scss
|
167
182
|
- _sass/yat/_layout.scss
|
168
|
-
- _sass/yat/_syntax-highlighting.scss
|
169
183
|
- assets/css/main.scss
|
170
184
|
- assets/js/main.js
|
171
185
|
homepage: https://github.com/jeffreytse/jekyll-theme-yat
|
@@ -173,7 +187,7 @@ licenses:
|
|
173
187
|
- MIT
|
174
188
|
metadata:
|
175
189
|
plugin_type: theme
|
176
|
-
post_install_message:
|
190
|
+
post_install_message:
|
177
191
|
rdoc_options: []
|
178
192
|
require_paths:
|
179
193
|
- lib
|
@@ -188,8 +202,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
202
|
- !ruby/object:Gem::Version
|
189
203
|
version: '0'
|
190
204
|
requirements: []
|
191
|
-
rubygems_version: 3.0.
|
192
|
-
signing_key:
|
205
|
+
rubygems_version: 3.0.6
|
206
|
+
signing_key:
|
193
207
|
specification_version: 4
|
194
|
-
summary: Yet another theme for
|
208
|
+
summary: Yet another theme for elegant writers with modern flat style.
|
195
209
|
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
|
-
}
|