diff options
| author | mayx <mayx@outlook.com> | 2026-03-08 11:54:41 +0100 |
|---|---|---|
| committer | mayx <mayx@outlook.com> | 2026-03-08 11:54:41 +0100 |
| commit | 5fd8d2fe0fd5cfe3ba3cebc9182233f7fb4478ab (patch) | |
| tree | 8e0bacc942b63640c22c85377a85f7024da93ffe | |
| parent | c9dfb107330356e5945c8ee16eb409950ab83f21 (diff) | |
Update 2 files
- /archives.md
- /_data/other_repo_list.csv
| -rw-r--r-- | _data/other_repo_list.csv | 4 | ||||
| -rw-r--r-- | archives.md | 23 |
2 files changed, 8 insertions, 19 deletions
diff --git a/_data/other_repo_list.csv b/_data/other_repo_list.csv index e154323..783511e 100644 --- a/_data/other_repo_list.csv +++ b/_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 diff --git a/archives.md b/archives.md index 647633b..cfe07ce 100644 --- a/archives.md +++ b/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 %}
\ No newline at end of file |
