jekyll-theme-h2o-ac 1.5.0 → 1.5.2

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: ec60aee793daf441774cae331b78ba0251b5d2da24e59fa4ec880c4491f5af9b
4
- data.tar.gz: faf930f91e02759ce8f58da7cb8f1ac41629b71fc0a927e4954f903567e31a5e
3
+ metadata.gz: 9cd9edc529c5515b6bfee37343a239635917fe18c8da16d17302097f57ad565e
4
+ data.tar.gz: 258442bc25acbfa0e95212bb6dd295532546533980442aec91ebbc427b7fa8f5
5
5
  SHA512:
6
- metadata.gz: aa3e9fb4f52f138137b61e84be439b64c18e27626187394248d4255323d26de60bd0ec3e9751af7e0d936ff9f4bfc4ce396fb05965f35d0fe0fffe2f0b76922e
7
- data.tar.gz: 0d8f8aa581aa647fb2f01085786f79dcc74b48d13feae3faaf3714c4439585c59596c61d79d29a4ede6b72874793326e6cbf2bad952666d017159b4c202016f8
6
+ metadata.gz: 52a796ab6d4620cacbb3d67be6efadfea9f7df380bb646e9537c8cb9546f1b716d34bdf061ae2ed2a7b468892edd5b85f6af3e2e76b38caa406f736a9dc5ac5a
7
+ data.tar.gz: 6e48ef49482a03dc2fa16b5f0424bc85ba10c9de504adb47c0244983b01069d7605d4af149099793b16fc596dd0c00d43e8e1a765f6f0bf657596ce0cd94fe16
data/README.md CHANGED
@@ -15,7 +15,7 @@ A Jekyll theme for researchers and maintainers based on Jekyll and [H2O](https:/
15
15
 
16
16
  使用文档:[https://h2o-ac-doc.lisz.me](https://h2o-ac-doc.lisz.me)
17
17
 
18
- Usage documentation is only available in Chinese now, but English version will be available soon.
18
+ Usage documentation is available in [https://h2o-ac-doc.lisz.me/en/](https://h2o-ac-doc.lisz.me/en/).
19
19
 
20
20
  ## Preview
21
21
 
data/_config.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  # jekyll-theme-h2o-ac
2
- version: 1.5.0
2
+ version: 1.5.2
3
3
 
4
4
  # Site settings 配置站点
5
5
  title: 'Mr Li'
@@ -145,6 +145,7 @@ alivestart: "12/23/2021"
145
145
 
146
146
  # Beian 备案号
147
147
  beian: '沪ICP备xxxxxxxx号'
148
+ police_beian: "沪公网安备xxxxxxxxxxxxxx号"
148
149
  # moe_beian: 'xxxxxxxx'
149
150
 
150
151
  # CC License
@@ -220,6 +221,7 @@ markdown: kramdown
220
221
  highlighter: rouge
221
222
  kramdown:
222
223
  input: GFM
224
+ # title_listed: true # if you want to display the index of titles automatically
223
225
 
224
226
  # Prism settings
225
227
  # Support all offical and extended themes
@@ -12,18 +12,25 @@
12
12
  class="extlinks">CloudBase Webify</a> {% endif %}
13
13
  </section>
14
14
  <section class="links">{{ site.title }} ©
15
- {% assign current = "now" | date: "%Y" | plus: 0%}
16
- {% unless site.footer.since and site.footer.since == current %}
17
- {{ site.footer.since }}
18
- -
19
- {% endunless %}
20
- {{ current }}
15
+ <input type="hidden" id="footer-since" value="{{ site.footer.since }}">
16
+ <span id="footer-year"></span>
17
+ </section>
18
+ <section class="links beian">
21
19
  {% if site.beian and site.beian != "" %}
22
20
  <a href="https://beian.miit.gov.cn/" target="_blank" class="extlinks">{{ site.beian }}</a>
23
21
  {% endif %}
22
+ {% if site.police_beian and site.police_beian != "" %}
23
+ {% assign police_beian_code = site.police_beian | split: "备" | last | remove: "号" | strip %}
24
+ <img src="{{ "/assets/icons/police_beian.png" | prepend: site.baseurl }}" style="height: 18px; vertical-align: top;" alt="police_beian">
25
+ <a href="https://beian.mps.gov.cn/#/query/webSearch?code={{ police_beian_code }}" rel="noreferrer" target="_blank" class="extlinks">
26
+ {{ site.police_beian }}
27
+ </a>
28
+ {% endif %}
24
29
  {% if site.moe_beian and site.moe_beian != "" %}
25
30
  <a href="https://icp.gov.moe/?keyword={{ site.moe_beian }}" target="_blank" class="extlinks">萌ICP备{{ site.moe_beian }}号</a>
26
31
  {% endif %}
32
+ </section>
33
+ <section class="links">
27
34
  <a href="/rss.xml" target="_blank" aria-label="Terms of Service" class="others">
28
35
  <svg class="icon" aria-hidden="true">
29
36
  <use xlink:href="#icon-rss"></use>
@@ -34,6 +41,13 @@
34
41
  <use xlink:href="#icon-tos"></use>
35
42
  </svg> {{footer.tos.name}}
36
43
  </a>
44
+ {% if site.alivetime %}
45
+ {{ footer.running.info }}
46
+ <span class="alivetime_days"></span> {{ footer.running.day }}
47
+ <span class="alivetime_hours"></span> {{ footer.running.hour }}
48
+ <span class="alivetime_minutes"></span> {{ footer.running.minute }}
49
+ <span class="alivetime_seconds"></span> {{ footer.running.second }}
50
+ {% endif %}
37
51
  </section>
38
52
  {% if site.busuanzi %}
39
53
  <section class="links">
@@ -61,15 +75,6 @@
61
75
  </span>
62
76
  </section>
63
77
  {% endif %}
64
- <section>
65
- {% if site.alivetime %}
66
- {{ footer.running.info }}
67
- <span class="alivetime_days"></span> {{ footer.running.day }}
68
- <span class="alivetime_hours"></span> {{ footer.running.hour }}
69
- <span class="alivetime_minutes"></span> {{ footer.running.minute }}
70
- <span class="alivetime_seconds"></span> {{ footer.running.second }}
71
- {% endif %}
72
- </section>
73
78
  </div>
74
79
  <div class="g-right">
75
80
  {% if site.supports.upyun %}
@@ -2,30 +2,34 @@
2
2
  <div class="g-logo">
3
3
  <a href="{{ "/" | relative_url }}" aria-label="logo"></a>
4
4
  </div>
5
- <!-- <i id="menu-toggle" class="iconfont icon-menu"></i> -->
6
- {% if site.search and site.search_type == "docsearch" %}
7
- <div id="search-toggle"></div>
8
- {% endif %}
9
- {% if site.badges.travelling %}
10
- <div id="travelling-toggle">
11
- <a href="https://www.travellings.cn/go.html" aria-label="Travelings" target="_blank">
12
- <svg class="icon" aria-hidden="true">
13
- <use xlink:href="#icon-train-subway"></use>
5
+ <div class="menu-tools">
6
+ {% if site.search and site.search_type == "docsearch" %}
7
+ <div id="search-toggle"></div>
8
+ {% endif %}
9
+ <div id="random-toggle">
10
+ <a href="#" aria-label="Random Article" target="_blank">🎲</a>
11
+ </div>
12
+ {% if site.badges.travelling %}
13
+ <div id="travelling-toggle">
14
+ <a href="https://www.travellings.cn/go.html" aria-label="Travelings" target="_blank">
15
+ <svg class="icon" aria-hidden="true">
16
+ <use xlink:href="#icon-train-subway"></use>
17
+ </svg>
18
+ </a>
19
+ </div>
20
+ {% endif %}
21
+ <div id="mode-toggle">
22
+ <svg class="icon icon-day" aria-hidden="true">
23
+ <use xlink:href="#icon-day"></use>
14
24
  </svg>
15
- </a>
16
- </div>
17
- {% endif %}
18
- <div id="mode-toggle">
19
- <svg class="icon icon-day" aria-hidden="true">
20
- <use xlink:href="#icon-day"></use>
21
- </svg>
22
- <svg class="icon icon-night" aria-hidden="true">
23
- <use xlink:href="#icon-night"></use>
25
+ <svg class="icon icon-night" aria-hidden="true">
26
+ <use xlink:href="#icon-night"></use>
27
+ </svg>
28
+ </div>
29
+ <svg id="menu-toggle" class="icon-menu" aria-hidden="true">
30
+ <use xlink:href="#icon-menu"></use>
24
31
  </svg>
25
32
  </div>
26
- <svg id="menu-toggle" class="icon-menu" aria-hidden="true">
27
- <use xlink:href="#icon-menu"></use>
28
- </svg>
29
33
  <nav class="g-nav">
30
34
  <ul>
31
35
  {% for i in site.nav %}
@@ -50,6 +54,9 @@
50
54
  </li>
51
55
  {% endif %}
52
56
  {% endfor %}
57
+ <li class="random">
58
+ <a href="#" aria-label="Random Article" target="_blank">🎲</a>
59
+ </li>
53
60
  {% if site.badges.travelling %}
54
61
  <li class="travelling">
55
62
  <a href="https://www.travellings.cn/go.html" aria-label="Travelings" target="_blank">
@@ -1,5 +1,5 @@
1
1
  {% assign pin_posts = site.posts | where: "pin", "true" | sort: "date" | reverse %}
2
- {% assign unpin_posts = site.posts | where: "pin", nil | sort: "date" | reverse %}
2
+ {% assign unpin_posts = site.posts | where_exp: "item", "item.pin != true" | sort: "date" | reverse %}
3
3
  {% assign pin_posts_num = pin_posts | size %}
4
4
  {% assign unpin_posts_num = unpin_posts | size %}
5
5
  {% assign page_num = paginator.page %}
data/_layouts/404.html CHANGED
@@ -1,15 +1,32 @@
1
1
  ---
2
- layout: default
3
- description: "Sorry, Page Not Found :("
4
2
  permalink: /404.html
5
3
  ---
6
4
 
7
- <header class="g-banner np-banner {{ site.postPatterns | prepend: 'post-pattern-' }}" data-theme="{{ site.theme-color }}">
8
- <div class="post-wrapper">
9
- <h1>404</h1>
10
- <span class="subheading">{{ page.description }}</span>
11
- <a href="{{ site.nav.home }}" class="btn">Back to home</a>
12
- </div>
13
- </header>
14
-
15
-
5
+ {% assign lang = page.lang | default: site.default_lang %}
6
+ <!DOCTYPE html>
7
+ <html lang="{{ lang }}">
8
+ {% include layouts/head.html %}
9
+ <body ontouchstart="">
10
+ <!--[if lt IE 10]>
11
+ <div class="alert-danger" role="alert">你的浏览器实在太太太旧了,放学别走,升级完浏览器再说!<a target="_blank" class="alert-link" href="http://browsehappy.com">立即升级</a></div>
12
+ <![endif]-->
13
+ {% if site.gray %}
14
+ <div id=all class="gray" data-theme="{{ site.theme-color }}">
15
+ {% else %}
16
+ <div id="all" data-theme="{{ site.theme-color }}">
17
+ {% endif %}
18
+ <input id="nm-switch" type="hidden" value="{{ site.nightMode }}">
19
+ <div class="np-banner">
20
+ <h1>404</h1>
21
+ <span class="subheading">{{ page.description }}</span>
22
+ <a href="{{ site.nav.home }}" class="btn">Back to Home</a>
23
+ </div>
24
+ </div>
25
+ <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
26
+ <script src="{{ "/assets/js/app.min.js" | prepend: site.baseurl }}"></script>
27
+ <script src="https://at.alicdn.com/t/c/font_3046306_ujr2yq34hw.js"></script>
28
+ {% include plugins/analytics/analytics.html %}
29
+ {% include plugins/others/pwa.html %}
30
+ {% include plugins/others/webpusher.html %}
31
+ </body>
32
+ </html>
@@ -7,7 +7,7 @@ cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900
7
7
  ---
8
8
 
9
9
  {% assign pin_posts = site.posts | where: "pin", "true" | sort: "date" | reverse %}
10
- {% assign unpin_posts = site.posts | where: "pin", nil | sort: "date" | reverse %}
10
+ {% assign unpin_posts = site.posts | where_exp: "item", "item.pin != true" | sort: "date" | reverse %}
11
11
  {% assign pin_posts_num = pin_posts | size %}
12
12
  {% assign unpin_posts_num = unpin_posts | size %}
13
13
  {% assign nyear = "1900" %}
data/_layouts/post.html CHANGED
@@ -12,7 +12,7 @@ type: post
12
12
  <div class="post-tags">
13
13
  {% if page.tags.size > 0 %}
14
14
  {% for tag in page.tags %}
15
- <a href="{{ " /tags.html#" | append: tag | relative_url }}" class="post-tag">{{ tag }}</a>
15
+ <a href="{{ "/tags.html#" | append: tag | relative_url }}" class="post-tag">{{ tag }}</a>
16
16
  {% endfor %}
17
17
  {% endif %}
18
18
  </div>
@@ -96,7 +96,11 @@ type: post
96
96
  <div class="container">
97
97
  {% include layouts/submenu.html %}
98
98
  <div class="contents">
99
+ {% if site.title_listed %}
100
+ <article class="markdown-body post listed">
101
+ {% else %}
99
102
  <article class="markdown-body post">
103
+ {% endif %}
100
104
  {% include plugins/i18n.html %}
101
105
  {{ page.content | extlinks }}
102
106
  <div class="post-copyright">