Ver Fonte

Update 2 files

- /archives.md
- /_data/other_repo_list.csv
mayx há 1 dia atrás
pai
commit
5fd8d2fe0f
2 ficheiros alterados com 8 adições e 19 exclusões
  1. 0 4
      _data/other_repo_list.csv
  2. 8 15
      archives.md

+ 0 - 4
_data/other_repo_list.csv

@@ -63,7 +63,6 @@ https://git.pwaapp.cc/mayx/blog
 http://119.28.73.80:5000/mayx/blog
 https://git.sleepingforest.co.uk/mayx/blog
 https://an360.top/mayx/blog
-https://gitea.chenxu2233.com/mayx/blog
 http://106.15.78.64:3000/mayx/blog
 http://hoenking.cn:3000/mayx/blog
 https://gitea.anessen.xyz/mayx/blog
@@ -211,7 +210,6 @@ http://58.221.13.198:30010/mayx/blog
 https://git.d-popov.com/mayx/blog
 https://git.liliyamol.cn/mayx/blog
 http://8.138.90.28:3000/mayx/blog
-https://gitea.theaken.com/mayx/blog
 https://git.ja-schwarz.de/mayx/blog
 https://git.23cm.cn/mayx/blog
 https://gitea.oio.cat/mayx/blog
@@ -289,7 +287,6 @@ https://vw-git.senecasense.com/mayx/blog
 http://git.uhfdemo.com/mayx/blog
 http://47.108.217.75:3000/mayx/blog
 https://git.jakubzabski.pl/mayx/blog
-https://vila.go.ro/mayx/blog
 http://8.134.218.17:8013/mayx/blog
 http://124.223.89.168:8080/mayx/blog
 http://139.129.21.166:3000/mayx/blog
@@ -440,7 +437,6 @@ http://rito.synology.me:3000/mayx/blog
 http://www.dothing.com:6999/mayx/blog
 http://8.217.32.95:3000/mayx/blog
 https://git.temporaryname.org/mayx/blog
-https://git.loli.surf/mayx/blog
 https://Repo.gusdya.net/mayx/blog
 https://git.m.ctf.arrobe.fr/mayx/blog
 http://120.27.238.24:3000/mayx/blog

+ 8 - 15
archives.md

@@ -5,23 +5,16 @@ title: Archives
 
 # Archives
 
-* * *
-
-{% for post in site.posts %}
-{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
-{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} 
-{% if forloop.first %}
-
-## {{ this_year }}
+---
 
-{% endif %} 
+{% assign posts_by_year = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
 
-- {{ post.date | date: "%Y/%m/%d" }} - [{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}]({{ post.url }})    
+{% for year in posts_by_year %}
 
-{% if forloop.last %} 
-{% else %}
-{% if this_year != next_year %}
+## {{ year.name }} (共 {{ year.items | size }} 篇)
 
-## {{next_year}}
+{% for post in year.items %}
+- {{ post.date | date: "%Y/%m/%d" }} - [{{ post.title }}{% if post.layout == "encrypt" %} [加密]{% endif %}]({{ post.url }})
+{% endfor %}
 
-{% endif %} {% endif %} {% endfor %} 
+{% endfor %}