feat: support sort blog post list page (#348)

This commit is contained in:
Xin
2024-04-02 09:52:26 +02:00
committed by GitHub
parent 5103da4cd5
commit 6d4bbac085
3 changed files with 40 additions and 4 deletions

View File

@ -136,7 +136,7 @@ params:
flexsearch:
# index page by: content | summary | heading | title
index: content
# full | forward | reverse | strict
# full | forward | reverse | strict
# https://github.com/nextapps-de/flexsearch/#tokenizer-prefix-search
tokenize: forward
@ -147,6 +147,9 @@ params:
blog:
list:
displayTags: true
# date | lastmod | publishDate | title | weight
sortBy: date
sortOrder: desc # or "asc"
comments:
enable: false