jekyll-theme-hamilton 1.4.2 → 3.1.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.
- checksums.yaml +4 -4
- data/README.md +1 -27
- data/_includes/head.html +1 -6
- data/_layouts/archive-taxonomies.html +8 -1
- data/_layouts/archive-years.html +8 -1
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +2 -2
- data/_layouts/post.html +49 -15
- data/_sass/hamilton/base.scss +4 -0
- data/_sass/hamilton/layout.scss +73 -38
- data/_sass/hamilton/skin.scss +16 -9
- data/_sass/hamilton/skins/daylight.scss +2 -1
- data/_sass/hamilton/skins/midnight.scss +4 -3
- data/_sass/hamilton/skins/sunrise.scss +2 -1
- data/_sass/hamilton/variables.scss +5 -4
- metadata +38 -11
- data/_includes/image.html +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5044574bcedfda1f8b3a42493f85c31b6d167a0a30a9e241a57c8f83d4816d9
|
4
|
+
data.tar.gz: a4970e2123b9c0688cc5f9761fa7dde11e192106ae3c30a16f2d3c49bdfc0df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8783df54ceff357bb91daf4650f1e8cbea70f7023920b03055c45107872a68c22b57cfefeaa8362dbc8ae69622944fa5ed7903ab2c05dd6504a70937a387ed0b
|
7
|
+
data.tar.gz: eccebc22431392658371b9920f1c0fc87b462c3485557abca4935c70d0e5b56cead1a1ab1df1954b47b1416e990ed67a23ff6f296aa091a97b590ab1156c02af
|
data/README.md
CHANGED
@@ -23,7 +23,6 @@ Please check out the [demo](https://ngzhio.github.io/jekyll-theme-hamilton/).
|
|
23
23
|
- Configurable page navigation
|
24
24
|
- Customizable styles and skins
|
25
25
|
- Archive pages implemented in pure Liquid
|
26
|
-
- An elegant way to import images on posts
|
27
26
|
|
28
27
|
## Table of Contents <!-- omit in toc -->
|
29
28
|
|
@@ -32,7 +31,6 @@ Please check out the [demo](https://ngzhio.github.io/jekyll-theme-hamilton/).
|
|
32
31
|
- [Optional Parameters](#optional-parameters)
|
33
32
|
- [Archive Pages](#archive-pages)
|
34
33
|
- [MathJax](#mathjax)
|
35
|
-
- [Images](#images)
|
36
34
|
- [Customization](#customization)
|
37
35
|
- [Metadata](#metadata)
|
38
36
|
- [Navigation](#navigation)
|
@@ -86,7 +84,7 @@ After installation, you can run `jekyll serve` to check out your site, but befor
|
|
86
84
|
| `email` | string | The email of the author of the site. |
|
87
85
|
| `skin` | string | The skin name. See more information on the [Customization](#customization) section. |
|
88
86
|
| `lang` | string | The language of the site; The default value is `en`. |
|
89
|
-
| `paginate` | int | The number of posts on each page.
|
87
|
+
| `paginate` | int | The number of posts on each page. |
|
90
88
|
| `date_format` | string | The date format; The default value is `%b %-d, %Y`. |
|
91
89
|
|
92
90
|
## Archive Pages
|
@@ -117,30 +115,6 @@ layout: archive-years
|
|
117
115
|
|
118
116
|
You can enable MathJax on each post or page, just set `math: true` on that page.
|
119
117
|
|
120
|
-
## Images
|
121
|
-
|
122
|
-
Hamilton provides a template [`image.html`](_includes/image.html) to let you import images on each post through an elegant way. For example,
|
123
|
-
|
124
|
-
```liquid
|
125
|
-
{% include image.html src="the/path/to/the/image" %}
|
126
|
-
```
|
127
|
-
|
128
|
-
By default, the alignment of the image is center, but you can configure the alignment to left or right by passing a parameter `align`, for example,
|
129
|
-
|
130
|
-
```liquid
|
131
|
-
{% include image.html src="the/path/to/the/image" align="left" %}
|
132
|
-
```
|
133
|
-
|
134
|
-
You can also configure the width and height of the image,
|
135
|
-
|
136
|
-
```liquid
|
137
|
-
{% include image.html src="the/path/to/the/image" width="50%" height="128px" %}
|
138
|
-
```
|
139
|
-
|
140
|
-
Besides, you can pass the `caption` parameter to the include, then it will wrap the `img` with a `figure` block; alternatively, you can pass the `alt` parameter to the include.
|
141
|
-
|
142
|
-
If you feel that passing a long path to the image to the include is ugly and wasting time, you can replace the `src` parameter with the `name` parameter, which is just the name of the image, and by default, the path would be `assets/img/posts/{{ page.title | slugify}}/{{ include.name }}`.
|
143
|
-
|
144
118
|
## Customization
|
145
119
|
|
146
120
|
### Metadata
|
data/_includes/head.html
CHANGED
@@ -15,12 +15,7 @@
|
|
15
15
|
{% endif %}
|
16
16
|
|
17
17
|
<!-- Google Fonts -->
|
18
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
|
19
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open%20Sans">
|
20
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata">
|
21
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Dancing%20Script">
|
22
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto%20Sans%20SC">
|
23
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto%20Serif%20SC">
|
18
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Roboto%20Slab|Roboto%20Mono|Lobster|Dancing%20Script|Noto%20Sans%20SC|Noto%20Sans%20TC|Noto%20Serif%20SC|Noto%20Serif%20TC|ZCOOL%20QingKe%20HuangYou|Ma%20Shan%20Zheng">
|
24
19
|
|
25
20
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
26
21
|
<link rel="stylesheet" href="{{ '/assets/css/skin.css' | relative_url }}">
|
@@ -70,7 +70,14 @@ layout: page
|
|
70
70
|
</li>
|
71
71
|
{%- endfor -%}
|
72
72
|
</ul>
|
73
|
-
<a href="#" class="back-to-top">Top ⇈</a>
|
73
|
+
<a href="#" onclick="backToTop()" class="back-to-top">Top ⇈</a>
|
74
74
|
{%- endif -%}
|
75
75
|
{%- endfor -%}
|
76
76
|
{%- endfor -%}
|
77
|
+
|
78
|
+
<script>
|
79
|
+
function backToTop() {
|
80
|
+
const main = document.getElementById("site-main");
|
81
|
+
main.scrollTop = 0;
|
82
|
+
}
|
83
|
+
</script>
|
data/_layouts/archive-years.html
CHANGED
@@ -33,5 +33,12 @@ layout: page
|
|
33
33
|
</li>
|
34
34
|
{%- endfor -%}
|
35
35
|
</ul>
|
36
|
-
<a href="#" class="back-to-top">Top ⇈</a>
|
36
|
+
<a href="#" onclick="backToTop()" class="back-to-top">Top ⇈</a>
|
37
37
|
{%- endfor -%}
|
38
|
+
|
39
|
+
<script>
|
40
|
+
function backToTop() {
|
41
|
+
const main = document.getElementById("site-main");
|
42
|
+
main.scrollTop = 0;
|
43
|
+
}
|
44
|
+
</script>
|
data/_layouts/default.html
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
<aside class="site-sidebar" id="site-sidebar">
|
16
16
|
{% include sidebar.html %}
|
17
17
|
</aside>
|
18
|
-
<main class="site-main" aria-label="Content">
|
18
|
+
<main class="site-main" id="site-main" aria-label="Content">
|
19
19
|
{{ content }}
|
20
20
|
<footer class="site-footer">
|
21
21
|
{% include footer.html %}
|
data/_layouts/home.html
CHANGED
@@ -18,13 +18,13 @@ layout: default
|
|
18
18
|
{%- for post in posts -%}
|
19
19
|
<li>
|
20
20
|
<h2>
|
21
|
-
<a
|
21
|
+
<a href="{{ post.url | relative_url }}">
|
22
22
|
{{ post.title | escape }}
|
23
23
|
</a>
|
24
24
|
</h2>
|
25
25
|
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
26
26
|
{%- if post.show_excerpts != false -%}
|
27
|
-
<div class="post-excerpt">{{ post.excerpt }}</div>
|
27
|
+
<div class="post-excerpt">{{ post.excerpt | strip_html }}</div>
|
28
28
|
{%- endif -%}
|
29
29
|
</li>
|
30
30
|
{%- endfor -%}
|
data/_layouts/post.html
CHANGED
@@ -28,26 +28,60 @@ layout: default
|
|
28
28
|
{%- endif -%}
|
29
29
|
</p>
|
30
30
|
|
31
|
-
{% if page.tags.size > 0 %}
|
32
|
-
<p class="post-meta post-tags">
|
33
|
-
{% assign tags = page.tags | sort %}
|
34
|
-
{% for tag in tags %}
|
35
|
-
<span class="post-tag">
|
36
|
-
{% assign slugified_tag = tag | slugify %}
|
37
|
-
<a href="{{ '/tags/#:tag' | replace: ':tag', slugified_tag | relative_url }}">#{{ slugified_tag }}</a>
|
38
|
-
</span>
|
39
|
-
{% endfor %}
|
40
|
-
</p>
|
41
|
-
{% endif %}
|
42
|
-
|
43
31
|
</header>
|
44
32
|
|
45
33
|
<div class="post-content e-content" itemprop="articleBody">
|
46
34
|
{{ content }}
|
35
|
+
</div>
|
47
36
|
|
48
|
-
|
49
|
-
|
37
|
+
<footer class="post-footer">
|
38
|
+
{% if page.categories.size > 0 %}
|
39
|
+
<div class="post-meta">
|
40
|
+
<i class="fas fa-folder"></i>
|
41
|
+
<ul class="post-taxonomies post-categories">
|
42
|
+
{% assign categories = page.categories | sort %}
|
43
|
+
{% for category in categories %}
|
44
|
+
<li class="post-category">
|
45
|
+
{% assign slugified_category = category | slugify %}
|
46
|
+
<a href="{{ '/categories/#:category' | replace: ':category', slugified_category | relative_url }}">{{ category }}</a>
|
47
|
+
</li>
|
48
|
+
{% endfor %}
|
49
|
+
</ul>
|
50
|
+
</div>
|
50
51
|
{% endif %}
|
51
|
-
|
52
|
+
|
53
|
+
{% if page.tags.size > 0 %}
|
54
|
+
<div class="post-meta">
|
55
|
+
<i class="fas fa-tags"></i>
|
56
|
+
<ul class="post-taxonomies post-tags">
|
57
|
+
{% assign tags = page.tags | sort %}
|
58
|
+
{% for tag in tags %}
|
59
|
+
<li class="post-tag">
|
60
|
+
{% assign slugified_tag = tag | slugify %}
|
61
|
+
<a href="{{ '/tags/#:tag' | replace: ':tag', slugified_tag | relative_url }}">{{ slugified_tag }}</a>
|
62
|
+
</li>
|
63
|
+
{% endfor %}
|
64
|
+
</ul>
|
65
|
+
</div>
|
66
|
+
{% endif %}
|
67
|
+
|
68
|
+
<nav class="post-pagination" role="navigation">
|
69
|
+
{% if page.previous %}
|
70
|
+
<a class="post-previous" href="{{ page.previous.url | relative_url }}">
|
71
|
+
<i class="fas fa-arrow-left"></i> {{ page.previous.title | markdownify | strip_html }}
|
72
|
+
</a>
|
73
|
+
{% endif %}
|
74
|
+
|
75
|
+
{% if page.next %}
|
76
|
+
<a class="post-next" href="{{ page.next.url | relative_url }}">
|
77
|
+
{{ page.next.title | markdownify | strip_html }} <i class="fas fa-arrow-right"></i>
|
78
|
+
</a>
|
79
|
+
{% endif %}
|
80
|
+
</nav>
|
81
|
+
</footer>
|
82
|
+
|
83
|
+
{% if page.comments != false and jekyll.environment == "production" %}
|
84
|
+
{% include disqus.html %}
|
85
|
+
{% endif %}
|
52
86
|
|
53
87
|
</article>
|
data/_sass/hamilton/base.scss
CHANGED
data/_sass/hamilton/layout.scss
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
width: 100vw;
|
7
7
|
display: grid;
|
8
8
|
grid-template-columns: 1fr;
|
9
|
-
grid-template-rows: $base-font-size * 3 1fr;
|
9
|
+
grid-template-rows: $base-font-size * 3 + 6px 1fr;
|
10
10
|
}
|
11
11
|
|
12
12
|
/**
|
@@ -17,8 +17,6 @@
|
|
17
17
|
border-bottom: 1px solid;
|
18
18
|
min-height: $base-font-size * 3;
|
19
19
|
line-height: $base-font-size * 3;
|
20
|
-
position: sticky;
|
21
|
-
top: 0;
|
22
20
|
|
23
21
|
@include media-query($on-small) {
|
24
22
|
display: flex;
|
@@ -27,7 +25,7 @@
|
|
27
25
|
|
28
26
|
.site-sidebar-button {
|
29
27
|
position: absolute;
|
30
|
-
top:
|
28
|
+
top: 3px;
|
31
29
|
left: $spacing-unit / 2;
|
32
30
|
|
33
31
|
img {
|
@@ -43,7 +41,7 @@
|
|
43
41
|
|
44
42
|
.site-title {
|
45
43
|
@include relative-font-size(1.625);
|
46
|
-
font-family: $
|
44
|
+
font-family: $handwriting-font-family;
|
47
45
|
letter-spacing: -1px;
|
48
46
|
margin-bottom: 0;
|
49
47
|
float: left;
|
@@ -55,7 +53,7 @@
|
|
55
53
|
|
56
54
|
.site-nav {
|
57
55
|
position: absolute;
|
58
|
-
top:
|
56
|
+
top: 12px;
|
59
57
|
right: $spacing-unit / 2;
|
60
58
|
border: 1px solid;
|
61
59
|
border-radius: 0.4em;
|
@@ -114,7 +112,6 @@
|
|
114
112
|
.dropdown-content {
|
115
113
|
display: none;
|
116
114
|
position: absolute;
|
117
|
-
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
118
115
|
z-index: 1;
|
119
116
|
}
|
120
117
|
|
@@ -184,7 +181,7 @@
|
|
184
181
|
*/
|
185
182
|
.site-body {
|
186
183
|
display: grid;
|
187
|
-
grid-template-columns: calc(#{$content-width} * 0.
|
184
|
+
grid-template-columns: calc(#{$content-width} * 0.22) 1fr;
|
188
185
|
overflow: hidden;
|
189
186
|
|
190
187
|
@include media-query($on-medium) {
|
@@ -200,11 +197,12 @@
|
|
200
197
|
* Site sidebar
|
201
198
|
*/
|
202
199
|
.site-sidebar {
|
203
|
-
padding: $spacing-unit
|
200
|
+
padding: $spacing-unit;
|
204
201
|
border-right: 1px solid;
|
205
202
|
@include relative-font-size(0.8);
|
206
203
|
|
207
204
|
@include media-query($on-medium) {
|
205
|
+
padding: $spacing-unit / 2;
|
208
206
|
@include relative-font-size(0.6);
|
209
207
|
}
|
210
208
|
|
@@ -246,14 +244,13 @@
|
|
246
244
|
margin-bottom: 0;
|
247
245
|
}
|
248
246
|
|
249
|
-
.social-icons {
|
247
|
+
ul.social-icons {
|
250
248
|
list-style: none;
|
251
249
|
margin-left: 0;
|
252
250
|
margin-bottom: 0;
|
253
|
-
text-align: left;
|
254
|
-
display: flex;
|
255
251
|
|
256
|
-
|
252
|
+
> li {
|
253
|
+
display: inline-block;
|
257
254
|
margin: 0.3em;
|
258
255
|
}
|
259
256
|
}
|
@@ -275,8 +272,13 @@
|
|
275
272
|
-ms-overflow-style: none; // IE and Edge
|
276
273
|
scrollbar-width: none; // Firefox
|
277
274
|
|
278
|
-
padding-left: $spacing-unit
|
279
|
-
padding-right: $spacing-unit
|
275
|
+
padding-left: $spacing-unit;
|
276
|
+
padding-right: $spacing-unit;
|
277
|
+
|
278
|
+
@include media-query($on-medium) {
|
279
|
+
padding-left: $spacing-unit / 2;
|
280
|
+
padding-right: $spacing-unit / 2;
|
281
|
+
}
|
280
282
|
|
281
283
|
@include media-query($on-small) {
|
282
284
|
padding-left: 0;
|
@@ -309,6 +311,11 @@
|
|
309
311
|
|
310
312
|
h2 {
|
311
313
|
margin-bottom: 0;
|
314
|
+
@include relative-font-size(1.4);
|
315
|
+
|
316
|
+
@media screen and (min-width: $on-large) {
|
317
|
+
@include relative-font-size(1.5);
|
318
|
+
}
|
312
319
|
}
|
313
320
|
|
314
321
|
.post-excerpt {
|
@@ -321,14 +328,6 @@
|
|
321
328
|
}
|
322
329
|
}
|
323
330
|
|
324
|
-
.post-link {
|
325
|
-
@include relative-font-size(1.5);
|
326
|
-
|
327
|
-
@media screen and (min-width: $on-large) {
|
328
|
-
@include relative-font-size(1.55);
|
329
|
-
}
|
330
|
-
}
|
331
|
-
|
332
331
|
/**
|
333
332
|
* Pagination
|
334
333
|
*/
|
@@ -360,7 +359,7 @@
|
|
360
359
|
*/
|
361
360
|
.post-header {
|
362
361
|
padding-top: $spacing-unit * 2;
|
363
|
-
padding-bottom: $spacing-unit
|
362
|
+
padding-bottom: $spacing-unit;
|
364
363
|
border-bottom: 1px solid;
|
365
364
|
margin-bottom: $spacing-unit * 2;
|
366
365
|
text-align: center;
|
@@ -371,13 +370,48 @@
|
|
371
370
|
margin-bottom: $spacing-unit / 2;
|
372
371
|
}
|
373
372
|
|
374
|
-
.post-
|
375
|
-
|
376
|
-
|
373
|
+
.post-footer {
|
374
|
+
padding-top: $spacing-unit / 2;
|
375
|
+
border-top: 1px solid;
|
376
|
+
border-bottom: 1px solid;
|
377
|
+
}
|
378
|
+
|
379
|
+
ul.post-taxonomies {
|
380
|
+
list-style: none;
|
381
|
+
display: inline-block;
|
382
|
+
vertical-align: middle;
|
383
|
+
margin: 0 0 0 $spacing-unit / 3;
|
384
|
+
|
385
|
+
li {
|
386
|
+
float: left;
|
387
|
+
margin-right: $spacing-unit / 6;
|
388
|
+
padding: 0.3em 0.5em 0.2em 0.5em;
|
377
389
|
}
|
378
|
-
|
379
|
-
|
380
|
-
|
390
|
+
}
|
391
|
+
|
392
|
+
ul.post-tags {
|
393
|
+
li {
|
394
|
+
border-radius: 0.5em;
|
395
|
+
}
|
396
|
+
}
|
397
|
+
|
398
|
+
ul.post-categories {
|
399
|
+
li {
|
400
|
+
text-decoration: underline;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
.post-pagination {
|
405
|
+
@include relative-font-size(0.8);
|
406
|
+
display: flex;
|
407
|
+
justify-content: space-between;
|
408
|
+
padding-top: $spacing-unit / 2;
|
409
|
+
padding-bottom: $spacing-unit / 2;
|
410
|
+
border-top: 1px solid;
|
411
|
+
|
412
|
+
.post-previous
|
413
|
+
.post-next {
|
414
|
+
display: block;
|
381
415
|
}
|
382
416
|
}
|
383
417
|
|
@@ -385,13 +419,14 @@
|
|
385
419
|
// About font sizes for h1-h6, refer to https://stackoverflow.com/a/6140504/13261366
|
386
420
|
.post-title,
|
387
421
|
.post-content h1 {
|
388
|
-
|
422
|
+
font-family: $display-font-family;
|
423
|
+
@include relative-font-size(1.8);
|
389
424
|
font-weight: bold;
|
390
425
|
letter-spacing: -1px;
|
391
426
|
line-height: $base-line-height * $base-font-size * 2;
|
392
427
|
|
393
428
|
@media screen and (min-width: $on-large) {
|
394
|
-
@include relative-font-size(2
|
429
|
+
@include relative-font-size(2);
|
395
430
|
}
|
396
431
|
}
|
397
432
|
|
@@ -399,24 +434,24 @@
|
|
399
434
|
font-family: $reading-font-family;
|
400
435
|
margin-bottom: $spacing-unit;
|
401
436
|
|
437
|
+
h2, h3, h4, h5, h6 {
|
438
|
+
font-family: $base-font-family;
|
439
|
+
}
|
440
|
+
|
402
441
|
h2 { margin-top: $spacing-unit * 2 }
|
403
442
|
h3, h4 { margin-top: $spacing-unit * 1.5 }
|
404
443
|
h5, h6 { margin-top: $spacing-unit }
|
405
444
|
|
406
445
|
h2 {
|
407
|
-
@include relative-font-size(1.
|
446
|
+
@include relative-font-size(1.4);
|
408
447
|
|
409
448
|
@media screen and (min-width: $on-large) {
|
410
|
-
@include relative-font-size(1.
|
449
|
+
@include relative-font-size(1.5);
|
411
450
|
}
|
412
451
|
}
|
413
452
|
|
414
453
|
h3 {
|
415
454
|
@include relative-font-size(1.17);
|
416
|
-
|
417
|
-
@media screen and (min-width: $on-large) {
|
418
|
-
@include relative-font-size(1.175);
|
419
|
-
}
|
420
455
|
}
|
421
456
|
|
422
457
|
h4 {
|
data/_sass/hamilton/skin.scss
CHANGED
@@ -28,7 +28,7 @@ code {
|
|
28
28
|
}
|
29
29
|
|
30
30
|
pre {
|
31
|
-
box-shadow: $
|
31
|
+
box-shadow: $pre-shadow;
|
32
32
|
}
|
33
33
|
|
34
34
|
.highlight {
|
@@ -96,6 +96,7 @@ table {
|
|
96
96
|
|
97
97
|
.dropdown-content {
|
98
98
|
background-color: $border-color-light;
|
99
|
+
box-shadow: $dropdown-shadow;
|
99
100
|
}
|
100
101
|
}
|
101
102
|
|
@@ -105,14 +106,6 @@ table {
|
|
105
106
|
}
|
106
107
|
}
|
107
108
|
|
108
|
-
.post-link {
|
109
|
-
color: $text-color;
|
110
|
-
|
111
|
-
&:visited {
|
112
|
-
color: $text-color;
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
109
|
.post-header {
|
117
110
|
border-bottom-color: $border-color-light;
|
118
111
|
}
|
@@ -121,6 +114,20 @@ table {
|
|
121
114
|
color: $text-color-light;
|
122
115
|
}
|
123
116
|
|
117
|
+
.post-footer {
|
118
|
+
border-color: $border-color-light;
|
119
|
+
}
|
120
|
+
|
121
|
+
.post-pagination {
|
122
|
+
border-color: $border-color-light;
|
123
|
+
}
|
124
|
+
|
125
|
+
ul.post-tags {
|
126
|
+
li {
|
127
|
+
background-color: $border-color-light;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
124
131
|
.pagination {
|
125
132
|
li {
|
126
133
|
a, div {
|
@@ -16,7 +16,8 @@ $table-header-bg-color: mix($background-color, $border-color, 80%) !default;
|
|
16
16
|
$table-header-border: $border-color !default;
|
17
17
|
$table-border-color: lighten($border-color, 20%) !default;
|
18
18
|
|
19
|
-
$
|
19
|
+
$pre-shadow: 0 0 4px rgba(17,17,17,0.4) inset !default;
|
20
|
+
$dropdown-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2) !default;
|
20
21
|
|
21
22
|
$subscribe-color: #b21000 !default;
|
22
23
|
|
@@ -3,8 +3,8 @@ $text-color-light: silver !default;
|
|
3
3
|
$background-color: #121212 !default;
|
4
4
|
$code-background-color: #49483e !default;
|
5
5
|
|
6
|
-
$border-color: mix($text-color, $background-color,
|
7
|
-
$border-color-light: darken($border-color,
|
6
|
+
$border-color: mix($text-color, $background-color, 30%) !default;
|
7
|
+
$border-color-light: darken($border-color, 5%) !default;
|
8
8
|
$border-color-dark: lighten($border-color, 10%) !default;
|
9
9
|
|
10
10
|
$link-base-color: #00b1c9 !default;
|
@@ -16,7 +16,8 @@ $table-header-bg-color: mix($background-color, $border-color-light, 5%) !default
|
|
16
16
|
$table-header-border: lighten($border-color, 30%) !default;
|
17
17
|
$table-border-color: lighten($border-color, 20%) !default;
|
18
18
|
|
19
|
-
$
|
19
|
+
$pre-shadow: 0 0 4px rgba(255,255,255,0.4) inset !default;
|
20
|
+
$dropdown-shadow: 0px 8px 16px 0px rgba(255,255,255,0.2) !default;
|
20
21
|
|
21
22
|
$subscribe-color: tomato !default;
|
22
23
|
|
@@ -16,7 +16,8 @@ $table-header-bg-color: mix($background-color, $border-color, 70%) !default;
|
|
16
16
|
$table-header-border: $border-color !default;
|
17
17
|
$table-border-color: $border-color-light !default;
|
18
18
|
|
19
|
-
$
|
19
|
+
$pre-shadow: 0 0 4px rgba(34,34,34,0.4) inset !default;
|
20
|
+
$dropdown-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2) !default;
|
20
21
|
|
21
22
|
$subscribe-color: #004e00 !default;
|
22
23
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
// Fonts
|
2
|
-
$base-font-family: "
|
3
|
-
$
|
4
|
-
$
|
5
|
-
$
|
2
|
+
$base-font-family: Roboto, "Noto Sans SC", "Noto Sans TC" !default;
|
3
|
+
$reading-font-family: "Roboto Slab", "Noto Serif SC", "Noto Serif TC" !default;
|
4
|
+
$code-font-family: "Roboto Mono" !default;
|
5
|
+
$display-font-family: Lobster, "ZCOOL QingKe HuangYou" !default;
|
6
|
+
$handwriting-font-family: "Dancing Script", "Ma Shan Zheng" !default;
|
6
7
|
$base-font-size: 18px !default;
|
7
8
|
$base-line-height: 1.4 !default;
|
8
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-hamilton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shangzhi Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,56 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-seo-tag
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.6
|
33
|
+
version: '2.6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.6
|
40
|
+
version: '2.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll-feed
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.13
|
47
|
+
version: '0.13'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.13
|
54
|
+
version: '0.13'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jekyll-sitemap
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.4
|
61
|
+
version: '1.4'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.4
|
68
|
+
version: '1.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jekyll-paginate
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: kramdown-parser-gfm
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.1'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: bundler
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +137,6 @@ files:
|
|
109
137
|
- _includes/google-analytics.html
|
110
138
|
- _includes/head.html
|
111
139
|
- _includes/header.html
|
112
|
-
- _includes/image.html
|
113
140
|
- _includes/mathjax.html
|
114
141
|
- _includes/sidebar.html
|
115
142
|
- _layouts/archive-taxonomies.html
|
data/_includes/image.html
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
{% capture align %}align-{{ include.align | default: "center" }}{% endcapture %}
|
2
|
-
|
3
|
-
{%- if include.src -%}
|
4
|
-
{% assign src = include.src %}
|
5
|
-
{%- elsif include.name -%}
|
6
|
-
{% capture src %}assets/img/posts/{{ page.title | slugify }}/{{ include.name }}{% endcapture %}
|
7
|
-
{%- endif -%}
|
8
|
-
|
9
|
-
{% if include.caption %}
|
10
|
-
<figure class="{{ align }}">
|
11
|
-
<img class="{{ align }}" src="{{ src | absolute_url }}" alt="{{ include.caption }}" {% if include.width %}width="{{ include.width }}"{% endif %} {% if include.height %}height="{{ include.height }}"{% endif %}/>
|
12
|
-
<figcaption class="{{ align }}">{{ include.caption }}</figcaption>
|
13
|
-
</figure>
|
14
|
-
{% else %}
|
15
|
-
<img class="{{ align }}" src="{{ src | absolute_url }}" alt="{{ include.alt }}" {% if include.width %}width="{{ include.width }}"{% endif %} {% if include.height %}height="{{ include.height }}"{% endif %}/>
|
16
|
-
{% endif %}
|