A plugin to hide specified posts from your Hexo blog and make them only accessible by links. (Hexo 文章限定公开)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc Initial commit Nov 8, 2018
.gitignore Initial commit Nov 8, 2018
.travis.yml
LICENSE Initial commit Nov 8, 2018
README.md
index.js
package-lock.json
package.json Update package.json Nov 8, 2018

README.md

hexo-sage-posts

build-status npm-version

A plugin to hide specified posts from your Hexo blog and make them only accessible by links.

The name "sage" is borrowed from *chan image board. In this plugin, a post marked as "sage" is just like a YouTube video whose privacy set to "unlisted". The "sage" posts will not show up in the article lists (index, archive, category, tag, feed, sitemap, whatever), but they can still be accessed directly by entering its URL.

Without the post's URL, nobody can access a "sage" post.

Installation

$ npm install hexo-sage-posts --save

Usage

Add sage: true to the front-matter of posts which you want to hide.

e.g. Edit source/_posts/lorem-ipsum.md:

---
title: 'Lorem Ipsum'
date: '2019/8/10 11:45:14'
sage: true
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

This post will not be shown anywhere, but you can still access it by https://hexo.test/lorem-ipsum/.

License

MIT