0.0.1 • Published 6 years ago

hexo-sage-posts v0.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

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

0.0.1

6 years ago