Skip to content

如何根据文章发布时间获取最新的文章列表 #6796

Answered by ruibaby
WAGFS asked this question in Q&A
Discussion options

You must be logged in to vote

try /apis/api.content.halo.run/v1alpha1/posts?sort=spec.publishTime,desc

其中 sort 为数组,可以传入多个,比如 /apis/api.content.halo.run/v1alpha1/posts?sort=spec.publishTime,desc&sort=spec.priority,desc

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WAGFS
Comment options

@CpythonJava
Comment options

Answer selected by WAGFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants