jekyll-theme-scaffold 1.1.0 → 1.2.0

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: 159242ef4c93f6d4cd938cb0f46a9adeb45ed11901726ad019c1ce9986d8ebbe
4
- data.tar.gz: 55347755f53bdcd6e8c821de5e94d577298532408ec3832c7c40a88c780d1764
3
+ metadata.gz: c8e53446306727d0c463e168903b88ec92a33d9d338424cff8558bf3a81aa987
4
+ data.tar.gz: 39022624791e76637d51fa7942ad7c8c4c74d057ec43bd4f1b990dc76e98d532
5
5
  SHA512:
6
- metadata.gz: af0823d189187c8e4ef309f00fb18cd28e6ca4990cc851e0f037184eabb0ced66125bbe5f18698e392c4c1725042160cdcbf4647e0849213a23566fc423fba3e
7
- data.tar.gz: fda150e847275a74b3a263e3700ad2baa602f1641bf04666eadcb1de00e869be2331b032850a190bf208ec62ece4318c2a09d74a899d67b4090b8ce758df1dae
6
+ metadata.gz: 0ddd308f32c52458613291d254d9605fda1b5f1000dbede9589036bd3844348f6aaf19c6cc504a1d9b0f2ce7c78e928d1f99dec89be761b67422afce6e70ee08
7
+ data.tar.gz: cf64ec9786502b0041dda118383cd091fe0cc43f184d1ca82912c6862fc48960f7f4e84827b7c7eb499f38ce67d33e400eb03084b41121351b0ee1876b641430
data/README.md CHANGED
@@ -10,7 +10,7 @@ According to [Merriam-Webster](https://www.merriam-webster.com/), a *scaffold* i
10
10
 
11
11
  > a temporary or movable platform for workers (such as bricklayers, painters, or miners) to stand or sit on when working at a height above the floor or ground
12
12
 
13
- So is the target of the Jekyll theme Scaffold. It doesn't need to be modern, powerful, colorful, or beautiful; It just needs to be **simple**, **proper**, **naked**, and **neat**.
13
+ So is the target of the Jekyll theme Scaffold. It doesn't need to be modern, colorful, or beautiful; It just needs to be **simple**, **proper**, **naked**, and **neat**.
14
14
 
15
15
  Scaffold is empirical. Standing on it, you -- the blogger -- can build a great building based on your words.
16
16
 
@@ -30,7 +30,6 @@ Scaffold is empirical. Standing on it, you -- the blogger -- can build a great b
30
30
  - TOC, via [`jekyll-toc`](https://github.com/allejo/jekyll-toc)
31
31
  - [Jekyll Feed](https://github.com/jekyll/jekyll-feed/)
32
32
  - [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/)
33
- - [Jekyll Sitemap](https://github.com/jekyll/jekyll-sitemap/)
34
33
  - [Google Analytics](https://analytics.google.com/)
35
34
  - [Disqus](https://disqus.com/)
36
35
  - [MathJax](https://www.mathjax.org/)
@@ -91,6 +90,8 @@ If you want to use this theme on GitHub Pages, you can do that via `jekyll-remot
91
90
 
92
91
  ## Usage
93
92
 
93
+ The main usage of this theme is described in detail below. If you find the document difficult to understand or not specific enough, you can also use the [`gh-pages`](https://github.com/sziv2p/jekyll-theme-scaffold/tree/gh-pages) branch of this repository as an example to learn how to use this theme.
94
+
94
95
  ### Global Configuration
95
96
 
96
97
  | Variable | Type | Default | Specification |
@@ -109,6 +110,7 @@ If you want to use this theme on GitHub Pages, you can do that via `jekyll-remot
109
110
 
110
111
  | Variable | Type | Default | Specification |
111
112
  | -------- | ---- | ------- | ------------- |
113
+ | `description` | String | --- | A description of the current post |
112
114
  | `last_modified_at` | String | --- | The date of the last modification you made on a post after its publishing |
113
115
  | `author` | String or Array | --- | The author name(s) of the post |
114
116
  | `math` | Boolean | `false` | Does enable MathJax on this page |
@@ -28,7 +28,13 @@ layout: default
28
28
  {%- endif -%}
29
29
  </div>
30
30
 
31
- <p>{{ post.excerpt | strip_html }}</p>
31
+ <p>
32
+ {% if post.description %}
33
+ {{ post.description }}
34
+ {% else %}
35
+ {{ post.excerpt | strip_html }}
36
+ {% endif %}
37
+ </p>
32
38
  </section>
33
39
  {% endfor %}
34
40
  </div>
@@ -16,15 +16,11 @@
16
16
  display: flex;
17
17
  padding: 0.25em 0;
18
18
  justify-content: space-between;
19
- color: inherit;
20
19
  text-decoration: none;
21
20
  border-bottom: 1px solid;
22
21
  margin-bottom: var(--spacer);
23
-
24
- &:hover,
25
- &:focus {
26
- color: var(--link-color);
27
- }
22
+
23
+ @include alternative-link-style();
28
24
  }
29
25
  }
30
26
 
@@ -1,5 +1,6 @@
1
1
  .highlight {
2
2
  border-radius: var(--border-radius);
3
+ background-color: var(--code-bg);
3
4
  }
4
5
 
5
6
  .rouge-table {
@@ -12,12 +12,7 @@
12
12
  margin-right: var(--spacer);
13
13
  }
14
14
  .social-icon {
15
- color: inherit;
16
-
17
- &:hover,
18
- &:focus {
19
- color: var(--link-color);
20
- }
15
+ @include alternative-link-style();
21
16
  }
22
17
 
23
18
  @media (min-width: $md-screen) {
@@ -0,0 +1,9 @@
1
+ @mixin alternative-link-style() {
2
+ color: inherit;
3
+
4
+ &:hover,
5
+ &:focus {
6
+ color: var(--link-color);
7
+ text-decoration: none;
8
+ }
9
+ }
@@ -36,13 +36,7 @@
36
36
  }
37
37
 
38
38
  a {
39
- color: inherit;
40
-
41
- &:hover,
42
- &:focus {
43
- color: var(--link-color);
44
- text-decoration: none;
45
- }
39
+ @include alternative-link-style();
46
40
  }
47
41
  }
48
42
 
@@ -1,84 +1,81 @@
1
1
  .highlight table td { padding: 5px; }
2
2
  .highlight table pre { margin: 0; }
3
3
  .highlight, .highlight .w {
4
- color: #fbf1c7;
5
- background-color: #282828;
4
+ color: #93a1a1;
5
+ background-color: #002b36;
6
6
  }
7
7
  .highlight .err {
8
- color: #fb4934;
9
- background-color: #282828;
10
- font-weight: bold;
8
+ color: #002b36;
9
+ background-color: #dc322f;
11
10
  }
12
11
  .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
13
- color: #928374;
14
- font-style: italic;
12
+ color: #657b83;
15
13
  }
16
14
  .highlight .cp {
17
- color: #8ec07c;
15
+ color: #b58900;
18
16
  }
19
17
  .highlight .nt {
20
- color: #fb4934;
18
+ color: #b58900;
21
19
  }
22
20
  .highlight .o, .highlight .ow {
23
- color: #fbf1c7;
21
+ color: #93a1a1;
24
22
  }
25
23
  .highlight .p, .highlight .pi {
26
- color: #fbf1c7;
24
+ color: #93a1a1;
27
25
  }
28
26
  .highlight .gi {
29
- color: #b8bb26;
30
- background-color: #282828;
27
+ color: #859900;
31
28
  }
32
29
  .highlight .gd {
33
- color: #fb4934;
34
- background-color: #282828;
30
+ color: #dc322f;
35
31
  }
36
32
  .highlight .gh {
37
- color: #b8bb26;
33
+ color: #268bd2;
34
+ background-color: #002b36;
38
35
  font-weight: bold;
39
36
  }
40
37
  .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
41
- color: #fb4934;
38
+ color: #6c71c4;
42
39
  }
43
40
  .highlight .kc {
44
- color: #d3869b;
41
+ color: #cb4b16;
45
42
  }
46
43
  .highlight .kt {
47
- color: #fabd2f;
44
+ color: #cb4b16;
48
45
  }
49
46
  .highlight .kd {
50
- color: #fe8019;
47
+ color: #cb4b16;
51
48
  }
52
- .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
53
- color: #b8bb26;
54
- font-style: italic;
49
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
50
+ color: #859900;
55
51
  }
56
- .highlight .si {
57
- color: #b8bb26;
58
- font-style: italic;
52
+ .highlight .sa {
53
+ color: #6c71c4;
59
54
  }
60
55
  .highlight .sr {
61
- color: #b8bb26;
62
- font-style: italic;
56
+ color: #2aa198;
57
+ }
58
+ .highlight .si {
59
+ color: #d33682;
63
60
  }
64
61
  .highlight .se {
65
- color: #fe8019;
62
+ color: #d33682;
66
63
  }
67
64
  .highlight .nn {
68
- color: #8ec07c;
65
+ color: #b58900;
69
66
  }
70
67
  .highlight .nc {
71
- color: #8ec07c;
68
+ color: #b58900;
72
69
  }
73
70
  .highlight .no {
74
- color: #d3869b;
71
+ color: #b58900;
75
72
  }
76
73
  .highlight .na {
77
- color: #b8bb26;
74
+ color: #268bd2;
78
75
  }
79
76
  .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
80
- color: #d3869b;
77
+ color: #859900;
81
78
  }
82
79
  .highlight .ss {
83
- color: #83a598;
80
+ color: #859900;
84
81
  }
@@ -1,84 +1,80 @@
1
1
  .highlight table td { padding: 5px; }
2
2
  .highlight table pre { margin: 0; }
3
3
  .highlight, .highlight .w {
4
- color: #282828;
5
- background-color: #fbf1c7;
4
+ color: #586e75;
6
5
  }
7
6
  .highlight .err {
8
- color: #9d0006;
9
- background-color: #fbf1c7;
10
- font-weight: bold;
7
+ color: #002b36;
8
+ background-color: #dc322f;
11
9
  }
12
10
  .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
13
- color: #928374;
14
- font-style: italic;
11
+ color: #657b83;
15
12
  }
16
13
  .highlight .cp {
17
- color: #427b58;
14
+ color: #b58900;
18
15
  }
19
16
  .highlight .nt {
20
- color: #9d0006;
17
+ color: #b58900;
21
18
  }
22
19
  .highlight .o, .highlight .ow {
23
- color: #282828;
20
+ color: #93a1a1;
24
21
  }
25
22
  .highlight .p, .highlight .pi {
26
- color: #282828;
23
+ color: #93a1a1;
27
24
  }
28
25
  .highlight .gi {
29
- color: #79740e;
30
- background-color: #fbf1c7;
26
+ color: #859900;
31
27
  }
32
28
  .highlight .gd {
33
- color: #9d0006;
34
- background-color: #fbf1c7;
29
+ color: #dc322f;
35
30
  }
36
31
  .highlight .gh {
37
- color: #79740e;
32
+ color: #268bd2;
33
+ background-color: #002b36;
38
34
  font-weight: bold;
39
35
  }
40
36
  .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
41
- color: #9d0006;
37
+ color: #6c71c4;
42
38
  }
43
39
  .highlight .kc {
44
- color: #8f3f71;
40
+ color: #cb4b16;
45
41
  }
46
42
  .highlight .kt {
47
- color: #b57614;
43
+ color: #cb4b16;
48
44
  }
49
45
  .highlight .kd {
50
- color: #af3a03;
46
+ color: #cb4b16;
51
47
  }
52
- .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
53
- color: #79740e;
54
- font-style: italic;
48
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
49
+ color: #859900;
55
50
  }
56
- .highlight .si {
57
- color: #79740e;
58
- font-style: italic;
51
+ .highlight .sa {
52
+ color: #6c71c4;
59
53
  }
60
54
  .highlight .sr {
61
- color: #79740e;
62
- font-style: italic;
55
+ color: #2aa198;
56
+ }
57
+ .highlight .si {
58
+ color: #d33682;
63
59
  }
64
60
  .highlight .se {
65
- color: #af3a03;
61
+ color: #d33682;
66
62
  }
67
63
  .highlight .nn {
68
- color: #427b58;
64
+ color: #b58900;
69
65
  }
70
66
  .highlight .nc {
71
- color: #427b58;
67
+ color: #b58900;
72
68
  }
73
69
  .highlight .no {
74
- color: #8f3f71;
70
+ color: #b58900;
75
71
  }
76
72
  .highlight .na {
77
- color: #79740e;
73
+ color: #268bd2;
78
74
  }
79
75
  .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
80
- color: #8f3f71;
76
+ color: #859900;
81
77
  }
82
78
  .highlight .ss {
83
- color: #076678;
79
+ color: #859900;
84
80
  }
@@ -8,13 +8,7 @@
8
8
  border-radius: var(--border-radius);
9
9
 
10
10
  a {
11
- color: inherit;
12
-
13
- &:hover,
14
- &:focus {
15
- color: var(--link-color);
16
- text-decoration: none;
17
- }
11
+ @include alternative-link-style();
18
12
  }
19
13
 
20
14
  .post-title {
@@ -1,4 +1,5 @@
1
1
  @import "variables";
2
+ @import "functions";
2
3
  @import "predefined";
3
4
  @import "base";
4
5
  @import "layout";
@@ -1,5 +1,10 @@
1
1
  .post,
2
2
  .page {
3
+ overflow-wrap: break-word;
4
+ -webkit-hyphens: auto;
5
+ -ms-hyphens: auto;
6
+ hyphens: auto;
7
+
3
8
  h1, h2, h3, h4, h5, h6 {
4
9
  color: var(--heading-color);
5
10
  font-family: var(--heading-font);
@@ -29,7 +29,7 @@
29
29
  display: block;
30
30
  border-bottom: 1px solid var(--border-color);
31
31
 
32
- color: inherit;
32
+ color: var(--body-color-light);
33
33
 
34
34
  &:hover,
35
35
  &:focus {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Songzi Vong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.6'
69
- - !ruby/object:Gem::Dependency
70
- name: jekyll-sitemap
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.4'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.4'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: bundler
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +124,7 @@ files:
138
124
  - _sass/scaffold/_base.scss
139
125
  - _sass/scaffold/_code.scss
140
126
  - _sass/scaffold/_footer.scss
127
+ - _sass/scaffold/_functions.scss
141
128
  - _sass/scaffold/_header.scss
142
129
  - _sass/scaffold/_highlight-dark.scss
143
130
  - _sass/scaffold/_highlight-light.scss