Skip to content

How To List HexoJS Posts By Updated Date #4920

Discussion options

You must be logged in to vote

In Hexo _config.yml, set

index_generator:
  path: ''
  per_page: 5
  order_by: -updated

the default value of order_by option is -date, change it to -updated

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dimaslanjaka
Comment options

Answer selected by dimaslanjaka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants