diff --git a/repos/.vitepress/theme/components/dynamic/Archive.vue b/repos/.vitepress/theme/components/dynamic/Archive.vue index 61de82eea..90171573b 100644 --- a/repos/.vitepress/theme/components/dynamic/Archive.vue +++ b/repos/.vitepress/theme/components/dynamic/Archive.vue @@ -5,13 +5,24 @@ -->
+ 生肖 {{ year }}
- {{ month }} + + {{ month }} +
+ Bug万象集 + + 杂碎逆袭史 + + 方案春秋志 + + + {{ article.title }}
{{ formatDate(article.date) }} @@ -45,9 +56,46 @@ for (let i = 0; i < articleData.length; i++) { archiveData[year][month].push(article) } + +/** + * 获取生肖 + */ +function getChineseZodiac(year) { + switch(year % 12){ + case 0: + return 'monkey' + case 1: + return 'rooster' + case 2: + return 'dog' + case 3: + return 'pig' + case 4: + return 'rat' + case 5: + return 'ox' + case 6: + return 'tiger' + case 7: + return 'rabbit' + case 8: + return 'dragon' + case 9: + return 'snake' + case 10: + return 'horse' + case 11: + return 'goat' + } +} \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/dragon.svg b/repos/public/img/svg/chinese-zodiac/dragon.svg new file mode 100644 index 000000000..3d1d07572 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/dragon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/goat.svg b/repos/public/img/svg/chinese-zodiac/goat.svg new file mode 100644 index 000000000..da34d0cc5 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/goat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/horse.svg b/repos/public/img/svg/chinese-zodiac/horse.svg new file mode 100644 index 000000000..c6f31393c --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/horse.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/monkey.svg b/repos/public/img/svg/chinese-zodiac/monkey.svg new file mode 100644 index 000000000..ef8e41769 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/monkey.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/ox.svg b/repos/public/img/svg/chinese-zodiac/ox.svg new file mode 100644 index 000000000..db63eeb28 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/ox.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/pig.svg b/repos/public/img/svg/chinese-zodiac/pig.svg new file mode 100644 index 000000000..2fe8cbc1d --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/pig.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/rabbit.svg b/repos/public/img/svg/chinese-zodiac/rabbit.svg new file mode 100644 index 000000000..458c50e8d --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/rabbit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/rat.svg b/repos/public/img/svg/chinese-zodiac/rat.svg new file mode 100644 index 000000000..41ed97b20 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/rat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/rooster.svg b/repos/public/img/svg/chinese-zodiac/rooster.svg new file mode 100644 index 000000000..35ca6ba89 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/rooster.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/snake.svg b/repos/public/img/svg/chinese-zodiac/snake.svg new file mode 100644 index 000000000..d35a34642 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/snake.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/repos/public/img/svg/chinese-zodiac/tiger.svg b/repos/public/img/svg/chinese-zodiac/tiger.svg new file mode 100644 index 000000000..a69b81670 --- /dev/null +++ b/repos/public/img/svg/chinese-zodiac/tiger.svg @@ -0,0 +1 @@ + \ No newline at end of file