jekyll-theme-hamilton 3.1.0 → 4.0.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 +7 -4
- data/_includes/head.html +1 -1
- data/_includes/sidebar.html +14 -2
- data/_layouts/home.html +14 -2
- data/_layouts/post.html +3 -3
- data/_sass/hamilton/base.scss +3 -6
- data/_sass/hamilton/layout.scss +27 -7
- data/_sass/hamilton/variables.scss +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46fd3f729c41827bf6afb663b5acd694ff14cc220f1ecbbb583762027e1208fd
|
4
|
+
data.tar.gz: a18e3b2d66dc8522371a2a1c3389436722efb52af4397ae7bb11f46c9327162e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b30f118f6a6acecc6bcb33afeb0a5fea7084b1ef9e0b2cf880f2e4a1501bdebcc2a75da12f7db7a45eb53f37b75446ec3ffbb61eae6b7aad46d87986ca94d03
|
7
|
+
data.tar.gz: beacf8e15ef777f7000e0915ce45a709aa3ce1174ba5bee18093c975059a25bb5838c3aad9babd134a30765355601e9bcb47134850939781c1036bbba40d804a
|
data/README.md
CHANGED
@@ -6,9 +6,11 @@ The original purpose of this theme is to be a replacement of the default Jekyll
|
|
6
6
|
|
7
7
|
Please check out the [demo](https://ngzhio.github.io/jekyll-theme-hamilton/).
|
8
8
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
| Skins | Displays |
|
10
|
+
| ----- | -------- |
|
11
|
+
| Daylight |  |
|
12
|
+
| Sunrise/Sunset |  |
|
13
|
+
| Midnight |  |
|
12
14
|
|
13
15
|
## Features <!-- omit in toc -->
|
14
16
|
|
@@ -62,7 +64,7 @@ You can choose one of the following methods to install Hamilton:
|
|
62
64
|
plugins:
|
63
65
|
- jekyll-remote-theme
|
64
66
|
|
65
|
-
|
67
|
+
remote_theme: ngzhio/jekyll-theme-hamilton
|
66
68
|
```
|
67
69
|
|
68
70
|
## Configuration
|
@@ -82,6 +84,7 @@ After installation, you can run `jekyll serve` to check out your site, but befor
|
|
82
84
|
| `author` | string | The name of the author of the site; It would be showed in the copyright statement. |
|
83
85
|
| `avatar` | string | The avatar of the author of the site. |
|
84
86
|
| `email` | string | The email of the author of the site. |
|
87
|
+
| `location` | string | The current living location of the author of the site. |
|
85
88
|
| `skin` | string | The skin name. See more information on the [Customization](#customization) section. |
|
86
89
|
| `lang` | string | The language of the site; The default value is `en`. |
|
87
90
|
| `paginate` | int | The number of posts on each page. |
|
data/_includes/head.html
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
{% endif %}
|
16
16
|
|
17
17
|
<!-- Google Fonts -->
|
18
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Roboto%20Slab|Roboto%20Mono|
|
18
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open%20Sans|Roboto|Roboto%20Slab|Roboto%20Mono|Dancing%20Script|Noto%20Sans%20SC|Noto%20Sans%20TC|Noto%20Serif%20SC|Noto%20Serif%20TC|Ma%20Shan%20Zheng">
|
19
19
|
|
20
20
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
21
21
|
<link rel="stylesheet" href="{{ '/assets/css/skin.css' | relative_url }}">
|
data/_includes/sidebar.html
CHANGED
@@ -12,10 +12,22 @@
|
|
12
12
|
<div class="sidebar-section">
|
13
13
|
<ul class="contact-list">
|
14
14
|
{% if site.author -%}
|
15
|
-
<li
|
15
|
+
<li>
|
16
|
+
<i class="sidebar-icon fas fa-at"></i>
|
17
|
+
<span class="contact-info p-name">{{ site.author | escape }}</span>
|
18
|
+
</li>
|
16
19
|
{%- endif %}
|
17
20
|
{% if site.email -%}
|
18
|
-
<li
|
21
|
+
<li>
|
22
|
+
<i class="sidebar-icon fas fa-envelope"></i>
|
23
|
+
<a class="contact-info u-email" href="mailto:{{ site.email }}">{{ site.email }}</a>
|
24
|
+
</li>
|
25
|
+
{%- endif %}
|
26
|
+
{% if site.location -%}
|
27
|
+
<li>
|
28
|
+
<i class="sidebar-icon fas fa-location-arrow"></i>
|
29
|
+
<a class="contact-info u-location" href="https://www.google.com/maps/search/{{ site.location }}">{{ site.location }}</a>
|
30
|
+
</li>
|
19
31
|
{%- endif %}
|
20
32
|
</ul>
|
21
33
|
</div>
|
data/_layouts/home.html
CHANGED
@@ -22,7 +22,16 @@ layout: default
|
|
22
22
|
{{ post.title | escape }}
|
23
23
|
</a>
|
24
24
|
</h2>
|
25
|
-
<
|
25
|
+
<p class="post-meta">
|
26
|
+
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">
|
27
|
+
{{ post.date | date: date_format }}
|
28
|
+
</time>
|
29
|
+
{%- if jekyll.environment == "production" and site.disqus -%}
|
30
|
+
• <a href="{{ post.url | relative_url }}#disqus_thread">
|
31
|
+
<span class="disqus-comment-count" data-disqus-url="{{ post.url | absolute_url }}"></span>
|
32
|
+
</a>
|
33
|
+
{%- endif -%}
|
34
|
+
</p>
|
26
35
|
{%- if post.show_excerpts != false -%}
|
27
36
|
<div class="post-excerpt">{{ post.excerpt | strip_html }}</div>
|
28
37
|
{%- endif -%}
|
@@ -49,5 +58,8 @@ layout: default
|
|
49
58
|
{%- endif %}
|
50
59
|
|
51
60
|
{%- endif -%}
|
52
|
-
|
61
|
+
|
62
|
+
{%- if jekyll.environment == "production" and site.disqus -%}
|
63
|
+
<script id="dsq-count-scr" src="//{{ site.disqus }}.disqus.com/count.js" async></script>
|
64
|
+
{%- endif -%}
|
53
65
|
</div>
|
data/_layouts/post.html
CHANGED
@@ -12,9 +12,9 @@ layout: default
|
|
12
12
|
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
13
13
|
{{ page.date | date: date_format }}
|
14
14
|
</time>
|
15
|
-
{%- if page.
|
15
|
+
{%- if page.last_modified_at -%}
|
16
16
|
~
|
17
|
-
{%- assign mdate = page.
|
17
|
+
{%- assign mdate = page.last_modified_at | date_to_xmlschema -%}
|
18
18
|
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
|
19
19
|
{{ mdate | date: date_format }}
|
20
20
|
</time>
|
@@ -80,7 +80,7 @@ layout: default
|
|
80
80
|
</nav>
|
81
81
|
</footer>
|
82
82
|
|
83
|
-
{% if page.comments != false and jekyll.environment == "production" %}
|
83
|
+
{% if page.comments != false and jekyll.environment == "production" and site.disqus %}
|
84
84
|
{% include disqus.html %}
|
85
85
|
{% endif %}
|
86
86
|
|
data/_sass/hamilton/base.scss
CHANGED
@@ -83,10 +83,6 @@ li {
|
|
83
83
|
> ol {
|
84
84
|
margin-bottom: 0;
|
85
85
|
}
|
86
|
-
|
87
|
-
p, blockquote, pre, figure, iframe, %vertical-rhythm {
|
88
|
-
margin-bottom: $spacing-unit / 3;
|
89
|
-
}
|
90
86
|
}
|
91
87
|
|
92
88
|
/**
|
@@ -123,11 +119,12 @@ blockquote {
|
|
123
119
|
pre,
|
124
120
|
code {
|
125
121
|
font-family: $code-font-family;
|
122
|
+
letter-spacing: -1px;
|
126
123
|
border-radius: 0.3em;
|
127
124
|
}
|
128
125
|
|
129
126
|
code {
|
130
|
-
padding:
|
127
|
+
padding: 0px 5px;
|
131
128
|
}
|
132
129
|
|
133
130
|
pre {
|
@@ -181,7 +178,7 @@ ul.task-list {
|
|
181
178
|
list-style-type: none;
|
182
179
|
|
183
180
|
.task-list-item-checkbox {
|
184
|
-
margin: 0 .
|
181
|
+
margin: 0 .5em .25em -1.6em;
|
185
182
|
vertical-align: middle;
|
186
183
|
}
|
187
184
|
}
|
data/_sass/hamilton/layout.scss
CHANGED
@@ -238,10 +238,16 @@
|
|
238
238
|
text-align: left;
|
239
239
|
}
|
240
240
|
|
241
|
-
.contact-list {
|
241
|
+
ul.contact-list {
|
242
242
|
list-style: none;
|
243
243
|
margin-left: 0;
|
244
244
|
margin-bottom: 0;
|
245
|
+
|
246
|
+
li {
|
247
|
+
overflow: hidden;
|
248
|
+
white-space: nowrap;
|
249
|
+
text-overflow: ellipsis;
|
250
|
+
}
|
245
251
|
}
|
246
252
|
|
247
253
|
ul.social-icons {
|
@@ -256,7 +262,7 @@ ul.social-icons {
|
|
256
262
|
}
|
257
263
|
|
258
264
|
.author-avatar {
|
259
|
-
width: $base-font-size *
|
265
|
+
width: $base-font-size * 8;
|
260
266
|
height: auto;
|
261
267
|
border-radius: 50%;
|
262
268
|
}
|
@@ -299,6 +305,7 @@ ul.social-icons {
|
|
299
305
|
}
|
300
306
|
|
301
307
|
.post-list {
|
308
|
+
font-family: $headline-font-family;
|
302
309
|
margin-left: 0;
|
303
310
|
padding-left: 0;
|
304
311
|
list-style: none;
|
@@ -419,8 +426,8 @@ ul.post-categories {
|
|
419
426
|
// About font sizes for h1-h6, refer to https://stackoverflow.com/a/6140504/13261366
|
420
427
|
.post-title,
|
421
428
|
.post-content h1 {
|
422
|
-
font-family: $display-font-family;
|
423
429
|
@include relative-font-size(1.8);
|
430
|
+
font-family: $headline-font-family;
|
424
431
|
font-weight: bold;
|
425
432
|
letter-spacing: -1px;
|
426
433
|
line-height: $base-line-height * $base-font-size * 2;
|
@@ -435,12 +442,12 @@ ul.post-categories {
|
|
435
442
|
margin-bottom: $spacing-unit;
|
436
443
|
|
437
444
|
h2, h3, h4, h5, h6 {
|
438
|
-
font-family: $
|
445
|
+
font-family: $headline-font-family;
|
439
446
|
}
|
440
447
|
|
441
|
-
h2
|
442
|
-
h3
|
443
|
-
h5, h6 { margin-top: $spacing-unit }
|
448
|
+
h2 { margin-top: $spacing-unit * 2 }
|
449
|
+
h3 { margin-top: $spacing-unit * 1.5 }
|
450
|
+
h4, h5, h6 { margin-top: $spacing-unit }
|
444
451
|
|
445
452
|
h2 {
|
446
453
|
@include relative-font-size(1.4);
|
@@ -465,6 +472,19 @@ ul.post-categories {
|
|
465
472
|
h6 {
|
466
473
|
@include relative-font-size(0.75);
|
467
474
|
}
|
475
|
+
|
476
|
+
li {
|
477
|
+
margin-bottom: $spacing-unit / 3;
|
478
|
+
|
479
|
+
> ul,
|
480
|
+
> ol {
|
481
|
+
margin-top: $spacing-unit / 3;
|
482
|
+
}
|
483
|
+
|
484
|
+
p, blockquote, pre, figure, iframe, %vertical-rhythm {
|
485
|
+
margin-bottom: $spacing-unit / 3;
|
486
|
+
}
|
487
|
+
}
|
468
488
|
}
|
469
489
|
|
470
490
|
/**
|
@@ -1,16 +1,16 @@
|
|
1
1
|
// Fonts
|
2
|
-
$base-font-family:
|
2
|
+
$base-font-family: "Open Sans" !default;
|
3
3
|
$reading-font-family: "Roboto Slab", "Noto Serif SC", "Noto Serif TC" !default;
|
4
|
+
$headline-font-family: Roboto, "Noto Sans SC", "Noto Sans TC" !default;
|
4
5
|
$code-font-family: "Roboto Mono" !default;
|
5
|
-
$display-font-family: Lobster, "ZCOOL QingKe HuangYou" !default;
|
6
6
|
$handwriting-font-family: "Dancing Script", "Ma Shan Zheng" !default;
|
7
|
-
$base-font-size:
|
8
|
-
$base-line-height: 1.
|
7
|
+
$base-font-size: 16px !default;
|
8
|
+
$base-line-height: 1.5 !default;
|
9
9
|
|
10
10
|
// Layouts
|
11
11
|
$spacing-unit: 2rem !default;
|
12
|
-
$content-width:
|
12
|
+
$content-width: 1000px !default;
|
13
13
|
|
14
14
|
$on-small: 600px !default;
|
15
|
-
$on-medium:
|
16
|
-
$on-large:
|
15
|
+
$on-medium: 800px !default;
|
16
|
+
$on-large: 1000px !default;
|
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:
|
4
|
+
version: 4.0.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-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|