Skip to content

Commit

Permalink
docs: hide posts from index
Browse files Browse the repository at this point in the history
  • Loading branch information
muhac committed Nov 15, 2024
1 parent 2064bd3 commit 3cab37b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ sticky: 100
---
```

The hidden parameter can be used to hide a post from the index page. When `hidden: true` is set, the post will not appear in the index but will still be accessible in other ways (e.g., the archive page or via a direct link).

```yml
---
title: Secret Post
date: 2024/11/11 11:11:11
hidden: true
---
```

## Note

If your theme define a non-archive `index` layout (e.g. About Me page), this plugin would follow that layout instead and not generate an archive. In that case, use [hexo-generator-archive](https://github.com/hexojs/hexo-generator-archive) to generate an archive according to the `archive` layout.
Expand Down

0 comments on commit 3cab37b

Please sign in to comment.