Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hide posts from index #125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: hide posts from index #125

wants to merge 2 commits into from

Conversation

muhac
Copy link

@muhac muhac commented Nov 15, 2024

check list

  • Add test cases for the changes.
  • Passed the CI test.

Description

resolve #88

  • Hide posts with hidden: true in the front matter from the index.

Additional information

There is an issue with the provided solution for hiding posts after generation. Since pagination is already generated at that point, hiding multiple posts on a page can result in a significant lack of remaining posts.

test/index.js Show resolved Hide resolved
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 43aa8bd on muhac:master
into 83d121f on hexojs:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Hide posts from the index
3 participants