jekyll-theme-hamilton 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a6b59699830a2080fb59cdbca897d67525267787589e144aa36c6a2816e37d1
4
- data.tar.gz: 416c614671b59ee0bac70087605215af75b32d242c4b4b6eabd6d9ab15eddcc1
3
+ metadata.gz: 7788201a88e6630d8f6fed6bccd07815abe37e64aa1a38b6bb81d5c4fea14c7d
4
+ data.tar.gz: 5805a10fdc9c4c214fc92c02952807ad2c17ad7d6559ba0cb089bcafecb70c75
5
5
  SHA512:
6
- metadata.gz: e6faabfcbdd0720732955aad14f7f3b8a9118ea92074739003c6b33a90d955b7c30755f4c2c67bc479dd4b47339f234c5907786e8d005e35faee361d94a54805
7
- data.tar.gz: 3160d0962cd6abd080997910db9a6750cbd7141711620df854d79c6db7e0495cf0f66374e05065b0975abd2239d04360b3fce88920c796ed49745644f1c0e33c
6
+ metadata.gz: 987db308f125fe71e45cf4b23bd8bd5336edd9c3a4bfc9d60eac076e6bef3d52d66d47c9f5f388a9a54d2302b7447ee5ec0c3721825bcae9fedeba51881df28f
7
+ data.tar.gz: fcd871006ab2bd9366186a138021bc2b9b0a111eb5fed581b2a81df9ccc3ab1d6b9e325ef5b8240c3b2534ce996d94ec373b0648b63503629a20b138fdc919bd
@@ -1,10 +1,46 @@
1
1
  <footer id="footer" class="site-footer">
2
2
  <div class="wrapper">
3
- <p class="feed-subscribe">
4
- <a href="{{ 'feed.xml' | relative_url }}">
5
- <i class="feed-icon fas fa-rss"></i><span>Subscribe</span>
6
- </a>
7
- </p>
3
+ <div class="footer-col-wrapper">
4
+
5
+ <div class="footer-col">
6
+ <p class="feed-subscribe">
7
+ <a href="{{ 'feed.xml' | relative_url }}">
8
+ <i class="feed-icon fas fa-rss"></i><span>Subscribe</span>
9
+ </a>
10
+ </p>
11
+ <ul class="contact-list">
12
+ {%- if site.author -%}
13
+ <li class="p-name">{{ site.author | escape }}</li>
14
+ {%- endif -%}
15
+ {%- if site.email -%}
16
+ <li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
17
+ {%- endif -%}
18
+ </ul>
19
+ </div>
20
+
21
+ <div class="footer-col">
22
+ <div class="copyright">
23
+ {% assign year_from = site.posts[-1].date | date: '%Y' %}
24
+ {% assign year_to = site.time | date: '%Y' %}
25
+ {% if year_from == nil or year_from == year_to %}
26
+ {% assign year_string = year_from %}
27
+ {% else %}
28
+ {% assign year_string = year_from | append: '&nbsp;' | append: '-' | append: '&nbsp;' | append: year_to %}
29
+ {% endif %}
30
+ {% if site.author %}
31
+ <p>© {{ year_string }} {{ site.author }}; All rights reserved</p>
32
+ {% endif %}
33
+ </div>
34
+ <p>
35
+ Powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/ngzhio/jekyll-theme-hamilton">Hamilton</a>
36
+ </p>
37
+ </div>
38
+
39
+ <div class="footer-col">
40
+ <p>{{ site.description | escape }}</p>
41
+ </div>
42
+
43
+ </div>
8
44
 
9
45
  {% if site.data.social %}
10
46
  <div class="social-icons">
@@ -13,29 +49,6 @@
13
49
  {% endfor %}
14
50
  </div>
15
51
  {% endif %}
16
-
17
- <div class="copyright">
18
- {% assign year_from = site.posts[-1].date | date: '%Y' %}
19
- {% assign year_to = site.time | date: '%Y' %}
20
- {% if year_from == nil or year_from == year_to %}
21
- {% assign year_string = year_from %}
22
- {% else %}
23
- {% assign year_string = year_from | append: '&nbsp;' | append: '-' | append: '&nbsp;' | append: year_to %}
24
- {% endif %}
25
-
26
- {% if site.author %}
27
- {% if site.email %}
28
- <p>© {{ year_string }} <a class="u-email" href="mailto:{{ site.email }}">{{ site.author }}</a>; All rights reserved.</p>
29
- {% else %}
30
- <p>© {{ year_string }} {{ site.author }}; All rights reserved.</p>
31
- {% endif %}
32
- {% endif %}
33
-
34
- <p>
35
- Powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/ngzhio/jekyll-theme-hamilton">Hamilton</a>
36
- </p>
37
-
38
- </div>
39
52
  </div>
40
53
  </footer>
41
54
 
data/_layouts/post.html CHANGED
@@ -47,6 +47,8 @@ layout: default
47
47
 
48
48
  <div class="wrapper">
49
49
  <div class="post-content e-content" itemprop="articleBody">
50
+ {% include toc.html html=content class="toc" %}
51
+
50
52
  {{ content }}
51
53
 
52
54
  {% if page.comments != false and jekyll.environment == "production" %}
@@ -19,7 +19,7 @@ h1, h2, h3, h4, h5, h6,
19
19
  p, blockquote, pre,
20
20
  ul, ol, dl, figure,
21
21
  %vertical-rhythm {
22
- margin-bottom: $spacing-unit / 2;
22
+ margin-bottom: $spacing-unit;
23
23
  }
24
24
 
25
25
  /**
@@ -194,6 +194,7 @@
194
194
  padding-top: $spacing-unit * 2.5;
195
195
  padding-bottom: $spacing-unit * 2.5;
196
196
  margin-bottom: $spacing-unit * 2;
197
+ text-align: center;
197
198
  }
198
199
 
199
200
  .post-meta {
@@ -201,8 +202,14 @@
201
202
  margin-bottom: $spacing-unit / 2;
202
203
  }
203
204
 
204
- .post-tag {
205
- margin-right: $spacing-unit / 2;
205
+ .post-tags {
206
+ .post-tag {
207
+ margin-right: $spacing-unit / 2;
208
+ }
209
+
210
+ > :last-child {
211
+ margin-right: 0;
212
+ }
206
213
  }
207
214
 
208
215
 
@@ -337,23 +344,52 @@ figcaption.align-center {
337
344
  .site-footer {
338
345
  border-top: 1px solid;
339
346
  padding: $spacing-unit 0;
340
- text-align: center;
341
347
  @include relative-font-size(0.8);
342
348
 
343
- .feed-subscribe {
344
- font-weight: bold;
345
- text-align: left;
346
- .feed-icon {
347
- margin-right: 0.3em;
348
- }
349
+ p {
350
+ margin-bottom: $spacing-unit / 4;
351
+ }
352
+ }
353
+
354
+ @media screen and (min-width: $on-medium) {
355
+ .footer-col-wrapper {
356
+ display: flex
349
357
  }
350
358
 
359
+ .footer-col {
360
+ width: calc(100% - (#{$spacing-unit} / 2));
361
+ padding: 0 ($spacing-unit / 2);
351
362
 
352
- .social-icons {
353
- margin-bottom: $spacing-unit;
363
+ &:first-child {
364
+ padding-right: $spacing-unit / 2;
365
+ padding-left: 0;
366
+ }
354
367
 
355
- .social-icon {
356
- margin: 0.3em;
368
+ &:last-child {
369
+ padding-right: 0;
370
+ padding-left: $spacing-unit / 2;
357
371
  }
358
372
  }
359
373
  }
374
+
375
+ .feed-subscribe {
376
+ font-weight: bold;
377
+ text-align: left;
378
+ .feed-icon {
379
+ margin-right: 0.3em;
380
+ }
381
+ }
382
+
383
+ .contact-list {
384
+ list-style: none;
385
+ margin-left: 0;
386
+ }
387
+
388
+ .social-icons {
389
+ text-align: center;
390
+ margin-top: $spacing-unit / 2;
391
+
392
+ .social-icon {
393
+ margin: 0.3em;
394
+ }
395
+ }
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.0.0
4
+ version: 1.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-04-24 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.0.6
158
+ rubygems_version: 3.0.1
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Another minimal style of Jekyll theme for writers