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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/_config.yml +15 -17
  4. data/_data/collections.yml +11 -0
  5. data/_data/locales/en.yml +6 -0
  6. data/_data/locales/ja.yml +6 -0
  7. data/_data/locales/zh-Hans.yml +6 -0
  8. data/_data/locales/zh-Hant.yml +6 -0
  9. data/_includes/{footer.html → layouts/footer.html} +61 -35
  10. data/_includes/{post-head.html → layouts/head.html} +35 -29
  11. data/_includes/{header.html → layouts/header.html} +19 -1
  12. data/_includes/layouts/metainfo.html +40 -0
  13. data/_includes/{paginate-article.html → layouts/paginate-article.html} +9 -2
  14. data/_includes/{paginate.html → layouts/paginate.html} +5 -5
  15. data/_includes/{sidebar.html → layouts/sidebar.html} +21 -4
  16. data/_includes/layouts/submenu.html +30 -0
  17. data/_includes/plugins/analytics/analytics.html +3 -0
  18. data/_includes/{analytics.html → plugins/analytics/google.html} +1 -2
  19. data/_includes/plugins/comments/comments_block.html +67 -0
  20. data/_includes/plugins/comments/comments_js.html +24 -0
  21. data/_includes/plugins/comments/disqus.html +19 -0
  22. data/_includes/plugins/comments/waline_css.html +3 -0
  23. data/_includes/plugins/comments/waline_js.html +14 -0
  24. data/_includes/plugins/i18n.html +32 -0
  25. data/_includes/plugins/markdown/fancybox_css.html +1 -0
  26. data/_includes/plugins/markdown/fancybox_js.html +24 -0
  27. data/_includes/plugins/markdown/hotkeys.html +31 -0
  28. data/_includes/plugins/markdown/markdown.html +7 -0
  29. data/_includes/{mathjax.html → plugins/markdown/mathjax.html} +4 -9
  30. data/_includes/plugins/markdown/mermaid_block.html +10 -0
  31. data/_includes/plugins/markdown/mermaid_js.html +12 -0
  32. data/_includes/plugins/markdown/prism_css.html +16 -0
  33. data/_includes/plugins/markdown/prism_js.html +3 -0
  34. data/_includes/plugins/others/calendar_block.html +31 -0
  35. data/_includes/plugins/others/calendar_css.html +3 -0
  36. data/_includes/plugins/others/calendar_js.html +8 -0
  37. data/_includes/plugins/others/social_block.html +5 -0
  38. data/_includes/plugins/others/social_css.html +1 -0
  39. data/_includes/plugins/others/social_js.html +15 -0
  40. data/_layouts/404.html +17 -0
  41. data/_layouts/archives.html +89 -59
  42. data/_layouts/blog.html +4 -10
  43. data/_layouts/categories.html +3 -1
  44. data/_layouts/default.html +62 -45
  45. data/_layouts/links.html +14 -4
  46. data/_layouts/page.html +17 -87
  47. data/_layouts/post.html +146 -483
  48. data/_layouts/stats.html +52 -0
  49. data/_layouts/tags.html +2 -2
  50. data/assets/css/app.min.css +1 -2591
  51. data/assets/css/app.min.css.map +1 -1
  52. data/assets/css/cv.min.css +1 -279
  53. data/assets/css/cv.min.css.map +1 -1
  54. data/assets/js/app.min.js +1 -686
  55. data/assets/js/app.min.js.LICENSE.txt +15 -0
  56. data/assets/js/app.min.js.map +1 -1
  57. metadata +43 -20
  58. data/_includes/comments.html +0 -53
  59. data/_includes/head.html +0 -47
  60. data/_includes/mermaid.html +0 -12
  61. data/_includes/waline.html +0 -3
  62. /data/_includes/{pageNav.html → layouts/pageNav.html} +0 -0
  63. /data/_includes/{toc.html → layouts/toc.html} +0 -0
  64. /data/_includes/{busuanzi.html → plugins/analytics/busuanzi.html} +0 -0
  65. /data/_includes/{umami.html → plugins/analytics/umami.html} +0 -0
  66. /data/_includes/{pwa.html → plugins/others/pwa.html} +0 -0
  67. /data/_includes/{webpusher.html → plugins/others/webpusher.html} +0 -0
@@ -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 %}