jekyll-theme-hamilton 1.4.4 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c7ba52644a1de4f49df82c4a8137e0e73e2a6113c969bee996501f8054ad206
4
- data.tar.gz: 320198c139ab3193443f4f5746eda02d31a6d6e3e759419be66d66d8eab21058
3
+ metadata.gz: 918cbb51402f2cc6a02a9e8fae490614184e267fcc163f24beceb99f2e50efe6
4
+ data.tar.gz: 4978858b0bef6cb18d658cd3ff2f0af380cd9938af66292f164160fd1920473b
5
5
  SHA512:
6
- metadata.gz: 19fafeea368e6e2d1984ddf4c203415ce1834c814d65fb48f44a5aef2c89320f7e7c27149bf450b1521b44634b0ae470fb762237c4ad1e068e00a06a4f02eae5
7
- data.tar.gz: d4754deb6fb09c618f14977339f4eb2871943da5cdc7f1ee8d837707fec2b5739cc4812cb3b449921e09539e9f7a6e78a7ff940dbbdb701289e5cc252ea15943
6
+ metadata.gz: cdbe0d25fb6e15d6ef2bde21659ac56f10a7b3e9d4212ee3c05a39ffffb1ec22149067563b5bf34ec95a8e3c4c2745a29aede496689f174a8614681dd0451352
7
+ data.tar.gz: 17558ee6336979f3c4004ad7bde998f4228e1891835a77ac785375ba1886eb61211a3ea033a0f39d02acd58c7b4dc6f75b899678b905d0cb0f2610d23ab9d4a7
@@ -16,11 +16,16 @@
16
16
 
17
17
  <!-- Google Fonts -->
18
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
19
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto%20Sans%20SC">
20
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto%20Sans%20TC">
21
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto%20Slab">
23
22
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto%20Serif%20SC">
23
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto%20Serif%20TC">
24
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto%20Mono">
25
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lobster">
26
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=ZCOOL%20QingKe%20HuangYou">
27
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Dancing%20Script">
28
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ma%20Shan%20Zheng">
24
29
 
25
30
  <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
26
31
  <link rel="stylesheet" href="{{ '/assets/css/skin.css' | relative_url }}">
@@ -28,26 +28,46 @@ 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
- {% if page.comments != false and jekyll.environment == "production" %}
49
- {% include disqus.html %}
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
- </div>
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
+ </footer>
68
+
69
+ {% if page.comments != false and jekyll.environment == "production" %}
70
+ {% include disqus.html %}
71
+ {% endif %}
52
72
 
53
73
  </article>
@@ -41,7 +41,7 @@
41
41
 
42
42
  .site-title {
43
43
  @include relative-font-size(1.625);
44
- font-family: $title-font-family;
44
+ font-family: $handwriting-font-family;
45
45
  letter-spacing: -1px;
46
46
  margin-bottom: 0;
47
47
  float: left;
@@ -182,7 +182,7 @@
182
182
  */
183
183
  .site-body {
184
184
  display: grid;
185
- grid-template-columns: calc(#{$content-width} * 0.2) 1fr;
185
+ grid-template-columns: calc(#{$content-width} * 0.22) 1fr;
186
186
  overflow: hidden;
187
187
 
188
188
  @include media-query($on-medium) {
@@ -198,11 +198,12 @@
198
198
  * Site sidebar
199
199
  */
200
200
  .site-sidebar {
201
- padding: $spacing-unit / 2;
201
+ padding: $spacing-unit;
202
202
  border-right: 1px solid;
203
203
  @include relative-font-size(0.8);
204
204
 
205
205
  @include media-query($on-medium) {
206
+ padding: $spacing-unit / 2;
206
207
  @include relative-font-size(0.6);
207
208
  }
208
209
 
@@ -244,14 +245,13 @@
244
245
  margin-bottom: 0;
245
246
  }
246
247
 
247
- .social-icons {
248
+ ul.social-icons {
248
249
  list-style: none;
249
250
  margin-left: 0;
250
251
  margin-bottom: 0;
251
- text-align: left;
252
- display: flex;
253
252
 
254
- .social-icon {
253
+ > li {
254
+ display: inline-block;
255
255
  margin: 0.3em;
256
256
  }
257
257
  }
@@ -273,8 +273,13 @@
273
273
  -ms-overflow-style: none; // IE and Edge
274
274
  scrollbar-width: none; // Firefox
275
275
 
276
- padding-left: $spacing-unit / 2;
277
- padding-right: $spacing-unit / 2;
276
+ padding-left: $spacing-unit;
277
+ padding-right: $spacing-unit;
278
+
279
+ @include media-query($on-medium) {
280
+ padding-left: $spacing-unit / 2;
281
+ padding-right: $spacing-unit / 2;
282
+ }
278
283
 
279
284
  @include media-query($on-small) {
280
285
  padding-left: 0;
@@ -307,6 +312,11 @@
307
312
 
308
313
  h2 {
309
314
  margin-bottom: 0;
315
+ @include relative-font-size(1.4);
316
+
317
+ @media screen and (min-width: $on-large) {
318
+ @include relative-font-size(1.5);
319
+ }
310
320
  }
311
321
 
312
322
  .post-excerpt {
@@ -319,14 +329,6 @@
319
329
  }
320
330
  }
321
331
 
322
- .post-link {
323
- @include relative-font-size(1.5);
324
-
325
- @media screen and (min-width: $on-large) {
326
- @include relative-font-size(1.55);
327
- }
328
- }
329
-
330
332
  /**
331
333
  * Pagination
332
334
  */
@@ -358,7 +360,7 @@
358
360
  */
359
361
  .post-header {
360
362
  padding-top: $spacing-unit * 2;
361
- padding-bottom: $spacing-unit / 2;
363
+ padding-bottom: $spacing-unit;
362
364
  border-bottom: 1px solid;
363
365
  margin-bottom: $spacing-unit * 2;
364
366
  text-align: center;
@@ -369,13 +371,34 @@
369
371
  margin-bottom: $spacing-unit / 2;
370
372
  }
371
373
 
372
- .post-tags {
373
- .post-tag {
374
- margin-right: $spacing-unit / 2;
374
+ .post-footer {
375
+ padding-top: $spacing-unit / 2;
376
+ border-top: 1px solid;
377
+ border-bottom: 1px solid;
378
+ }
379
+
380
+ ul.post-taxonomies {
381
+ list-style: none;
382
+ display: inline-block;
383
+ vertical-align: middle;
384
+ margin: 0 0 0 $spacing-unit / 3;
385
+
386
+ li {
387
+ float: left;
388
+ margin-right: $spacing-unit / 6;
389
+ padding: 0.3em 0.5em 0.2em 0.5em;
375
390
  }
376
-
377
- > :last-child {
378
- margin-right: 0;
391
+ }
392
+
393
+ ul.post-tags {
394
+ li {
395
+ border-radius: 0.5em;
396
+ }
397
+ }
398
+
399
+ ul.post-categories {
400
+ li {
401
+ text-decoration: underline;
379
402
  }
380
403
  }
381
404
 
@@ -383,13 +406,14 @@
383
406
  // About font sizes for h1-h6, refer to https://stackoverflow.com/a/6140504/13261366
384
407
  .post-title,
385
408
  .post-content h1 {
386
- @include relative-font-size(2);
409
+ font-family: $display-font-family;
410
+ @include relative-font-size(1.8);
387
411
  font-weight: bold;
388
412
  letter-spacing: -1px;
389
413
  line-height: $base-line-height * $base-font-size * 2;
390
414
 
391
415
  @media screen and (min-width: $on-large) {
392
- @include relative-font-size(2.5);
416
+ @include relative-font-size(2);
393
417
  }
394
418
  }
395
419
 
@@ -402,19 +426,15 @@
402
426
  h5, h6 { margin-top: $spacing-unit }
403
427
 
404
428
  h2 {
405
- @include relative-font-size(1.5);
429
+ @include relative-font-size(1.4);
406
430
 
407
431
  @media screen and (min-width: $on-large) {
408
- @include relative-font-size(1.55);
432
+ @include relative-font-size(1.5);
409
433
  }
410
434
  }
411
435
 
412
436
  h3 {
413
437
  @include relative-font-size(1.17);
414
-
415
- @media screen and (min-width: $on-large) {
416
- @include relative-font-size(1.175);
417
- }
418
438
  }
419
439
 
420
440
  h4 {
@@ -121,6 +121,16 @@ table {
121
121
  color: $text-color-light;
122
122
  }
123
123
 
124
+ .post-footer {
125
+ border-color: $border-color-light;
126
+ }
127
+
128
+ ul.post-tags {
129
+ li {
130
+ background-color: $border-color-light;
131
+ }
132
+ }
133
+
124
134
  .pagination {
125
135
  li {
126
136
  a, div {
@@ -1,8 +1,9 @@
1
1
  // Fonts
2
- $base-font-family: "Open Sans", "Noto Serif SC" !default;
3
- $title-font-family: "Dancing Script" !default;
4
- $reading-font-family: Roboto, "Noto Sans SC" !default;
5
- $code-font-family: Inconsolata !default;
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.4
4
+ version: 2.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-07-06 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll