jekyll-theme-h2o-ac 1.2.1 → 1.3.1
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/README.md +5 -4
- data/_config.yml +15 -17
- data/_data/collections.yml +11 -0
- data/_data/locales/en.yml +6 -0
- data/_data/locales/ja.yml +6 -0
- data/_data/locales/zh-Hans.yml +6 -0
- data/_data/locales/zh-Hant.yml +6 -0
- data/_includes/{footer.html → layouts/footer.html} +61 -35
- data/_includes/{post-head.html → layouts/head.html} +35 -29
- data/_includes/{header.html → layouts/header.html} +19 -1
- data/_includes/layouts/metainfo.html +40 -0
- data/_includes/{paginate-article.html → layouts/paginate-article.html} +9 -2
- data/_includes/{paginate.html → layouts/paginate.html} +5 -5
- data/_includes/{sidebar.html → layouts/sidebar.html} +21 -4
- data/_includes/layouts/submenu.html +30 -0
- data/_includes/plugins/analytics/analytics.html +3 -0
- data/_includes/{analytics.html → plugins/analytics/google.html} +1 -2
- data/_includes/plugins/comments/comments_block.html +67 -0
- data/_includes/plugins/comments/comments_js.html +24 -0
- data/_includes/plugins/comments/disqus.html +19 -0
- data/_includes/plugins/comments/waline_css.html +3 -0
- data/_includes/plugins/comments/waline_js.html +14 -0
- data/_includes/plugins/i18n.html +32 -0
- data/_includes/plugins/markdown/fancybox_css.html +1 -0
- data/_includes/plugins/markdown/fancybox_js.html +24 -0
- data/_includes/plugins/markdown/hotkeys.html +31 -0
- data/_includes/plugins/markdown/markdown.html +7 -0
- data/_includes/{mathjax.html → plugins/markdown/mathjax.html} +4 -9
- data/_includes/plugins/markdown/mermaid_block.html +10 -0
- data/_includes/plugins/markdown/mermaid_js.html +12 -0
- data/_includes/plugins/markdown/prism_css.html +16 -0
- data/_includes/plugins/markdown/prism_js.html +3 -0
- data/_includes/plugins/others/calendar_block.html +31 -0
- data/_includes/plugins/others/calendar_css.html +3 -0
- data/_includes/plugins/others/calendar_js.html +8 -0
- data/_includes/plugins/others/social_block.html +5 -0
- data/_includes/plugins/others/social_css.html +1 -0
- data/_includes/plugins/others/social_js.html +15 -0
- data/_layouts/404.html +17 -0
- data/_layouts/archives.html +89 -59
- data/_layouts/blog.html +4 -10
- data/_layouts/categories.html +3 -1
- data/_layouts/default.html +62 -45
- data/_layouts/links.html +14 -4
- data/_layouts/page.html +17 -87
- data/_layouts/post.html +146 -483
- data/_layouts/stats.html +52 -0
- data/_layouts/tags.html +2 -2
- data/assets/css/app.min.css +1 -2591
- data/assets/css/app.min.css.map +1 -1
- data/assets/css/cv.min.css +1 -279
- data/assets/css/cv.min.css.map +1 -1
- data/assets/js/app.min.js +1 -686
- data/assets/js/app.min.js.LICENSE.txt +15 -0
- data/assets/js/app.min.js.map +1 -1
- metadata +43 -20
- data/_includes/comments.html +0 -53
- data/_includes/head.html +0 -47
- data/_includes/mermaid.html +0 -12
- data/_includes/waline.html +0 -3
- /data/_includes/{pageNav.html → layouts/pageNav.html} +0 -0
- /data/_includes/{toc.html → layouts/toc.html} +0 -0
- /data/_includes/{busuanzi.html → plugins/analytics/busuanzi.html} +0 -0
- /data/_includes/{umami.html → plugins/analytics/umami.html} +0 -0
- /data/_includes/{pwa.html → plugins/others/pwa.html} +0 -0
- /data/_includes/{webpusher.html → plugins/others/webpusher.html} +0 -0
data/_layouts/stats.html
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
{% capture stats_data %}
|
2
|
+
{"calendar":{ "by_day": [
|
3
|
+
{% assign vdate = "2001-01-01" %}
|
4
|
+
{% assign mdate = "2001-01" %}
|
5
|
+
{% assign ydate = "2001" %}
|
6
|
+
{% assign vcount = 0 %}
|
7
|
+
{% assign mcount = 0 %}
|
8
|
+
{% assign ycount = 0 %}
|
9
|
+
{% assign total = 0 %}
|
10
|
+
{% for post in site.posts %}
|
11
|
+
{% assign cdate = post.date | date: "%Y-%m-%d" %}
|
12
|
+
{% if vdate == cdate %}
|
13
|
+
{% assign vcount = vcount | plus: 1 %}
|
14
|
+
{% else %}
|
15
|
+
{% if vdate != "2001-01-01" %}
|
16
|
+
{"date": "{{ vdate }}", "count": {{ vcount }} },
|
17
|
+
{% endif %}
|
18
|
+
{% assign vdate = cdate %}
|
19
|
+
{% assign vcount = 1 %}
|
20
|
+
{% endif %}
|
21
|
+
{% assign total = total | plus: 1 %}
|
22
|
+
{% endfor %}
|
23
|
+
{"date": "{{ vdate }}", "count": {{ vcount }} }], "by_month": [
|
24
|
+
{% for post in site.posts %}
|
25
|
+
{% assign cdate = post.date | date: "%Y-%m" %}
|
26
|
+
{% if mdate == cdate %}
|
27
|
+
{% assign mcount = mcount | plus: 1 %}
|
28
|
+
{% else %}
|
29
|
+
{% if mdate != "2001-01" %}
|
30
|
+
{"date": "{{ mdate }}", "count": {{ mcount }} },
|
31
|
+
{% endif %}
|
32
|
+
{% assign mdate = cdate %}
|
33
|
+
{% assign mcount = 1 %}
|
34
|
+
{% endif %}
|
35
|
+
{% endfor %}
|
36
|
+
{"date": "{{ mdate }}", "count": {{ mcount }} }], "by_year": [
|
37
|
+
{% for post in site.posts %}
|
38
|
+
{% assign cdate = post.date | date: "%Y" %}
|
39
|
+
{% if ydate == cdate %}
|
40
|
+
{% assign ycount = ycount | plus: 1 %}
|
41
|
+
{% else %}
|
42
|
+
{% if ydate != "2001" %}
|
43
|
+
{"date": "{{ ydate }}", "count": {{ ycount }} },
|
44
|
+
{% endif %}
|
45
|
+
{% assign ydate = cdate %}
|
46
|
+
{% assign ycount = 1 %}
|
47
|
+
{% endif %}
|
48
|
+
{% endfor %}
|
49
|
+
{"date": "{{ ydate }}", "count": {{ ycount }} }]},
|
50
|
+
"total": {{total}}
|
51
|
+
}
|
52
|
+
{% endcapture %}{{ stats_data | strip | strip_newlines}}
|
data/_layouts/tags.html
CHANGED
@@ -3,7 +3,7 @@ title: Tags
|
|
3
3
|
layout: default
|
4
4
|
---
|
5
5
|
|
6
|
-
{% include header.html %}
|
6
|
+
{% include layouts/header.html %}
|
7
7
|
|
8
8
|
<div class="g-banner tags-banner {{ site.postPatterns | prepend: 'post-pattern-' }}" data-theme="{{ site.theme-color }}">
|
9
9
|
<h2>TAGS</h2>
|
@@ -47,4 +47,4 @@ layout: default
|
|
47
47
|
</ul>
|
48
48
|
</main>
|
49
49
|
|
50
|
-
{% include footer.html %}
|
50
|
+
{% include layouts/footer.html %}
|