hexojs / hexo-generator-index

Index generator plugin for Hexo.
MIT License
53 stars 45 forks source link

Front matter sticky is not work #101

Closed f-dong closed 6 months ago

f-dong commented 6 months ago

Check List

Describe the bug

Here is an example of Front Matter

sticky: 99
title: A simple test
date: 2022-07-24
tags:
- es
categories: es
updated: 2022-08-17

Expected behavior

Articles with 'sticky' set are displayed at the top.

How to reproduce

  1. Install hexo
  2. Modify a certain article to change 'sticky' to '999'.
  3. Observe the order of articles by running npm run server.

Screenshots

No response

Environment information

- System: Windows 11 (21H2)
- HEXO: 6.3.0
- hexo-generator-index: 3.0.0
- NODE: v20.9.0
- NPM: 10.1.0

Additional context

No response

stevenjoezhang commented 6 months ago

My tests show that the sticky functionality is working fine. Could you create a repository with code that reproduces the issue? Thanks!