Compare commits
2 Commits
683807b74a
...
585e7eb3a6
Author | SHA1 | Date | |
---|---|---|---|
585e7eb3a6 | |||
83d584c529 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -22,3 +22,6 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# jetbrains setting folder
|
# jetbrains setting folder
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
# test articles
|
||||||
|
src/content/
|
||||||
|
@ -36,7 +36,7 @@ const categoriedPostList: Array<CategoriedPosts> = allCategories.map((key) => {
|
|||||||
if (postA.data.lastUpdate !== postB.data.lastUpdate) {
|
if (postA.data.lastUpdate !== postB.data.lastUpdate) {
|
||||||
return postA.data.lastUpdate < postB.data.lastUpdate ? 1 : -1;
|
return postA.data.lastUpdate < postB.data.lastUpdate ? 1 : -1;
|
||||||
}
|
}
|
||||||
return postA.id.localeCompare(postB.id);
|
return postA.id.localeCompare(postB.id, 'zh-Hans-CN', { sensitivity: 'accent' });
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
: object[key].sort(
|
: object[key].sort(
|
||||||
|
Loading…
Reference in New Issue
Block a user