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 +4 -4
- data/_includes/footer.html +41 -28
- data/_layouts/post.html +2 -0
- data/_sass/hamilton/base.scss +1 -1
- data/_sass/hamilton/layout.scss +49 -13
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7788201a88e6630d8f6fed6bccd07815abe37e64aa1a38b6bb81d5c4fea14c7d
|
4
|
+
data.tar.gz: 5805a10fdc9c4c214fc92c02952807ad2c17ad7d6559ba0cb089bcafecb70c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 987db308f125fe71e45cf4b23bd8bd5336edd9c3a4bfc9d60eac076e6bef3d52d66d47c9f5f388a9a54d2302b7447ee5ec0c3721825bcae9fedeba51881df28f
|
7
|
+
data.tar.gz: fcd871006ab2bd9366186a138021bc2b9b0a111eb5fed581b2a81df9ccc3ab1d6b9e325ef5b8240c3b2534ce996d94ec373b0648b63503629a20b138fdc919bd
|
data/_includes/footer.html
CHANGED
@@ -1,10 +1,46 @@
|
|
1
1
|
<footer id="footer" class="site-footer">
|
2
2
|
<div class="wrapper">
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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: ' ' | append: '-' | append: ' ' | 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: ' ' | append: '-' | append: ' ' | 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
data/_sass/hamilton/base.scss
CHANGED
data/_sass/hamilton/layout.scss
CHANGED
@@ -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-
|
205
|
-
|
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
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
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
|
-
|
353
|
-
|
363
|
+
&:first-child {
|
364
|
+
padding-right: $spacing-unit / 2;
|
365
|
+
padding-left: 0;
|
366
|
+
}
|
354
367
|
|
355
|
-
|
356
|
-
|
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.
|
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-
|
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.
|
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
|