change theme to buck

This commit is contained in:
thislight 2024-01-10 18:35:50 +08:00
parent 014b4f6dc7
commit 88da620079
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
99 changed files with 2197 additions and 38 deletions

View file

@ -0,0 +1,13 @@
hexo.extend.helper.register("tags_of_year", function (year) {
const yearNumber = Number(year)
const tags = this.site.posts
.filter((post) => post.date.year() === yearNumber)
.map((x) => x.tags)
.reduce((p, c) => {
for (const t of c.toArray()) {
p.add(t)
}
return p
}, new Set())
return Array.from(tags);
})