Merge pull request #6045 from BenJamesBen/blog-chronological-navigation
fix(shared): Blog navigation menu in reverse chronological order
This commit is contained in:
commit
76a4945b37
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ const loadBlog = async () => {
|
|||
for (const lang of Object.keys(titles)) {
|
||||
posts[lang] = {}
|
||||
for (const post of ordered) {
|
||||
posts[lang][post.s] = { t: post.t }
|
||||
const sortkey = 9999999999 - post.o
|
||||
posts[lang][post.s] = { t: post.t, o: sortkey }
|
||||
if (lang === 'en') meta[post.s] = { a: post.a, d: post.o }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue