jekyll-theme-h2o-ac 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -1
- data/_config.yml +2 -2
- data/_layouts/archives.html +24 -40
- 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: a961ad13659397b5e24569ad0e86866c17bd2969572ec1828c342d9e85100d03
|
4
|
+
data.tar.gz: a487ae6d231fa964d8b4e6851a6409f2c60dd28df0996400017abad250ac8405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcdf8a4003858d3ffc8c253c51bd7469e21afbb2cb93a3d6d531ee3aac770d60df7f6eae184638e5d928672dedc85386c30c4c4d7825fe49ce5272601f231b37
|
7
|
+
data.tar.gz: 883bb3d0b10a898837c7d21fc761a05df0d8580fa337775866ba812430edcbf68bd5ae01889b7900fd8db54729bd773022c3c0c0da9cf266c564ae8f64d3297b
|
data/README.md
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
# jekyll-theme-H2O-ac
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/jekyll-theme-h2o-ac.svg)](https://badge.fury.io/rb/jekyll-theme-h2o-ac)
|
6
|
-
[![
|
6
|
+
[![pages-build-deployment](https://github.com/zhonger/jekyll-theme-H2O-ac/actions/workflows/pages/pages-build-deployment/badge.svg?branch=gh-pages)](https://github.com/zhonger/jekyll-theme-H2O-ac/actions/workflows/pages/pages-build-deployment)
|
7
7
|
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/60e1e5fb75b8411da3df2fbed7243aa6)](https://www.codacy.com/gh/zhonger/jekyll-theme-H2O-ac/dashboard?utm_source=github.com&utm_medium=referral&utm_content=zhonger/jekyll-theme-H2O-ac&utm_campaign=Badge_Grade)
|
8
8
|
[![GitHub license](https://img.shields.io/github/license/zhonger/jekyll-theme-H2O-ac)](https://github.com/zhonger/jekyll-theme-H2O-ac/blob/master/LICENSE)
|
9
9
|
![Jekyll Version](https://img.shields.io/badge/Jekyll-4.2.1-blue)
|
10
10
|
![Ruby Version](https://img.shields.io/badge/Ruby-3.1.0-blue)
|
11
|
+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fzhonger%2Fjekyll-theme-H2O-ac.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fzhonger%2Fjekyll-theme-H2O-ac?ref=badge_shield)
|
11
12
|
|
12
13
|
基于 Jekyll 和 [H2O](https://github.com/kaeyleo/jekyll-theme-H2O) 主题、适合学术研究人员和运维开发人员的博客主题模板。
|
13
14
|
|
@@ -46,6 +47,13 @@ Using your smartphone to scan the QR Code
|
|
46
47
|
- 配置项
|
47
48
|
- 前端自动构建工作流优化
|
48
49
|
- 文章页侧边导航
|
50
|
+
- Waline 评论系统
|
51
|
+
- 深色模式切换按钮
|
52
|
+
- 时间本地化
|
53
|
+
- PWA
|
54
|
+
- 提示框支持
|
55
|
+
- 文章置顶
|
56
|
+
- 版权显式声明
|
49
57
|
|
50
58
|
#### EN
|
51
59
|
|
@@ -59,6 +67,13 @@ Using your smartphone to scan the QR Code
|
|
59
67
|
- New Settings
|
60
68
|
- Optimize the automatic workflow for static files
|
61
69
|
- The TOC for posts
|
70
|
+
- Waline comments
|
71
|
+
- Dark mode switch button
|
72
|
+
- Time localization
|
73
|
+
- PWA
|
74
|
+
- Premonition
|
75
|
+
- Top article pin
|
76
|
+
- Copyright statement for articles
|
62
77
|
|
63
78
|
### Usage 快速开始
|
64
79
|
|
@@ -83,3 +98,5 @@ Any types of contribution are welcome. Thanks.
|
|
83
98
|
### License 许可证
|
84
99
|
|
85
100
|
Jekyll-Theme-H2O-ac is licensed under [MIT](https://github.com/zhonger/jekyll-theme-H2O-ac/blob/master/LICENSE).
|
101
|
+
|
102
|
+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fzhonger%2Fjekyll-theme-H2O-ac.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fzhonger%2Fjekyll-theme-H2O-ac?ref=badge_large)
|
data/_config.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# jekyll-theme-h2o-ac
|
2
|
-
version: 1.1.
|
2
|
+
version: 1.1.9
|
3
3
|
|
4
4
|
# Site settings 配置站点
|
5
5
|
title: 'Mr Li'
|
@@ -134,7 +134,7 @@ recommend-condition-size: 12 # a tag will be recommended if the size of it is mo
|
|
134
134
|
# Build settings
|
135
135
|
pagination:
|
136
136
|
enabled: true
|
137
|
-
per_page:
|
137
|
+
per_page: 5
|
138
138
|
permalink: 'page:num/'
|
139
139
|
title: ':title | :num of :max'
|
140
140
|
limit: 0
|
data/_layouts/archives.html
CHANGED
@@ -10,6 +10,7 @@ cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900
|
|
10
10
|
{% assign unpin_posts = site.posts | where: "pin", nil | sort: "date" | reverse %}
|
11
11
|
{% assign pin_posts_num = pin_posts | size %}
|
12
12
|
{% assign unpin_posts_num = unpin_posts | size %}
|
13
|
+
{% assign nyear = "1900" %}
|
13
14
|
|
14
15
|
<h2>Archives</h2>
|
15
16
|
|
@@ -37,31 +38,15 @@ cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900
|
|
37
38
|
</p>
|
38
39
|
</li>
|
39
40
|
{% endfor %}
|
40
|
-
</ul>
|
41
41
|
{% endif %}
|
42
42
|
|
43
43
|
{% if unpin_posts_num > 0%}
|
44
|
-
{% for post in unpin_posts %}
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
{% unless post.next %}
|
49
|
-
<h3 class="year">{{ post.date | date: '%Y' }}
|
50
|
-
<span class="icon-item">
|
51
|
-
<svg class="icon animal" aria-hidden="true">
|
52
|
-
<use xlink:href="#icon-{{ ssyears[animal] }}"></use>
|
53
|
-
</svg>
|
54
|
-
<svg class="icon dz" aria-hidden="true">
|
55
|
-
<use xlink:href="#icon-{{ ssyears[animal]}}_dz"></use>
|
56
|
-
</svg>
|
57
|
-
</span>
|
58
|
-
</h3>
|
59
|
-
<ul>
|
60
|
-
{% else %}
|
61
|
-
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
62
|
-
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
|
44
|
+
{% for post in unpin_posts %}
|
45
|
+
{% assign year = post.date | date: '%Y' %}
|
46
|
+
{% assign animal = year | minus:1900 | modulo:12 %}
|
63
47
|
{% if year != nyear %}
|
64
|
-
|
48
|
+
{% assign nyear = year %}
|
49
|
+
</ul>
|
65
50
|
<h3 class="year">{{ post.date | date: '%Y' }}
|
66
51
|
<span class="icon-item">
|
67
52
|
<svg class="icon animal" aria-hidden="true">
|
@@ -74,23 +59,22 @@ cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900
|
|
74
59
|
</h3>
|
75
60
|
<ul>
|
76
61
|
{% endif %}
|
77
|
-
{% endunless %}
|
78
|
-
|
79
|
-
<li>
|
80
|
-
<p class="archives-title">
|
81
|
-
<span class="archives-date">
|
82
|
-
{% case site.formats.time %}
|
83
|
-
{% when 0 %}
|
84
|
-
{{ post.date | date: "%Y-%m-%d" }}
|
85
|
-
{% when 1 %}
|
86
|
-
{{ post.date | date_to_string }}
|
87
|
-
{% else %}
|
88
|
-
{{ post.date | date: "%Y年%-m月%-d日" }}
|
89
|
-
{% endcase %}
|
90
|
-
</span>
|
91
|
-
<a href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a>
|
92
|
-
</p>
|
93
|
-
</li>
|
94
62
|
|
95
|
-
|
96
|
-
|
63
|
+
<li>
|
64
|
+
<p class="archives-title">
|
65
|
+
<span class="archives-date">
|
66
|
+
{% case site.formats.time %}
|
67
|
+
{% when 0 %}
|
68
|
+
{{ post.date | date: "%Y-%m-%d" }}
|
69
|
+
{% when 1 %}
|
70
|
+
{{ post.date | date_to_string }}
|
71
|
+
{% else %}
|
72
|
+
{{ post.date | date: "%Y年%-m月%-d日" }}
|
73
|
+
{% endcase %}
|
74
|
+
</span>
|
75
|
+
<a href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a>
|
76
|
+
</p>
|
77
|
+
</li>
|
78
|
+
{% endfor %}
|
79
|
+
{% endif %}
|
80
|
+
</ul>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-h2o-ac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhonger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-paginate-v2
|