diff options
author | mayx | 2022-01-04 20:42:55 +0800 |
---|---|---|
committer | mayx | 2022-01-04 20:42:55 +0800 |
commit | f4aa957c53cda659d026ffd23856f65a72fee739 (patch) | |
tree | afc51b78e1ff241c955ca30910e895e02e0a1d22 /archives.md |
Restore deleted repositories
Diffstat (limited to 'archives.md')
-rw-r--r-- | archives.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/archives.md b/archives.md new file mode 100644 index 0000000..647633b --- /dev/null +++ b/archives.md @@ -0,0 +1,27 @@ +--- +layout: default +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 %} + +- {{ post.date | date: "%Y/%m/%d" }} - [{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}]({{ post.url }}) + +{% if forloop.last %} +{% else %} +{% if this_year != next_year %} + +## {{next_year}} + +{% endif %} {% endif %} {% endfor %} |