All Projects → prinsss → hexo-hide-posts

prinsss / hexo-hide-posts

Licence: MIT license
A plugin to hide specific posts from your Hexo blog and make them only accessible by links. (隐藏 Hexo 文章)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hexo-hide-posts

hexo-covers
Microbrowser covers for Hexo static site generator
Stars: ✭ 15 (-89.93%)
Mutual labels:  hexo, hexo-plugin
hexo-instagram-wall
Displays up to 18 most recent images from your Instagram account
Stars: ✭ 12 (-91.95%)
Mutual labels:  hexo, hexo-plugin
hexo-filter-plantuml
Using PlantUML to generate UML Diagram for hexo
Stars: ✭ 23 (-84.56%)
Mutual labels:  hexo, hexo-plugin
hexo-netlify-cms
☕ A cup of coffee time to enable Netlify CMS
Stars: ✭ 29 (-80.54%)
Mutual labels:  hexo, hexo-plugin
hexo-douban-card
在hexo文章中插入豆瓣读书,豆瓣电影,豆瓣音乐组件
Stars: ✭ 56 (-62.42%)
Mutual labels:  hexo, hexo-plugin
hexo-filter-optimize
A Hexo plugin that optimize the pages loading speed.
Stars: ✭ 41 (-72.48%)
Mutual labels:  hexo, hexo-plugin
hexo-tag-hint
A Hexo tag plugin to display text hint/spoiler tooltip.
Stars: ✭ 26 (-82.55%)
Mutual labels:  hexo, hexo-plugin
hexo-filter-mathjax
💯 Server side MathJax renderer plugin for Hexo.
Stars: ✭ 76 (-48.99%)
Mutual labels:  hexo, hexo-plugin
hexo-reading-time
Plugin for Hexo CMS to display reading time for article
Stars: ✭ 28 (-81.21%)
Mutual labels:  hexo, hexo-plugin
hexo-tag-xvideos
🔞 Embed xvideos player in your Hexo posts/pages
Stars: ✭ 17 (-88.59%)
Mutual labels:  hexo, hexo-plugin
hexo-steam-games
为Hexo添加Steam游戏库页面
Stars: ✭ 24 (-83.89%)
Mutual labels:  hexo, hexo-plugin
hexo-bilibili-bangumi
hexo 番剧页面插件,可选数据源:Bilibili, Bangumi
Stars: ✭ 252 (+69.13%)
Mutual labels:  hexo, hexo-plugin
hexo-include-markdown
Easily load markdownfiles in Markdown .
Stars: ✭ 16 (-89.26%)
Mutual labels:  hexo, hexo-plugin
hexo-tag-instagram
Embed instagram photo and movie tag plugin for Hexo.
Stars: ✭ 23 (-84.56%)
Mutual labels:  hexo, hexo-plugin
hexo-directory-category
Automatically add category to Hexo article according to the article file directory.
Stars: ✭ 35 (-76.51%)
Mutual labels:  hexo, hexo-plugin
HideAndSeek
Hide and seek game recreated for PocketMine-MP
Stars: ✭ 15 (-89.93%)
Mutual labels:  hide
hexo-deployer-rsync
Rsync deployer plugin for Hexo.
Stars: ✭ 40 (-73.15%)
Mutual labels:  hexo
frame
Frame is a minimal, elegant hexo theme.
Stars: ✭ 50 (-66.44%)
Mutual labels:  hexo
hexo-theme-simple99
A minimalist theme developed based on hexo, welcome to use!基于hexo开发的双栏式简约风主题,欢迎使用!已适配 twikoo 静态评论系统。
Stars: ✭ 16 (-89.26%)
Mutual labels:  hexo
hexo-fs
File system module for Hexo.
Stars: ✭ 39 (-73.83%)
Mutual labels:  hexo

hexo-hide-posts

npm-version hexo-version

中文文档

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

Hide means your posts will not come up in article lists (homepage, archive, category, tag, feed, sitemap, whatever), or search results either (by telling search engines not to index these pages with a "noindex" meta tag). Only those who know the link can view the post, and you can share the link with anyone.

This means that posts marked as hidden could still be seen by anyone, but only if they guess the link.

Installation

$ npm install hexo-hide-posts --save

Usage

Add hidden: 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'
hidden: 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/. (If you want to completely prevent a post from rendering, just set it as a draft.)

To get a list of hidden posts, you can run hexo hidden:list from command line.

For developers, all_posts and hidden_posts added to Local Variables may be useful.

Config

In your site's _config.yml:

# hexo-hide-posts
hide_posts:
  enable: true
  # Change the filter name to fit your need
  filter: hidden
  # Generators which you want to expose all posts (include hidden ones) to.
  # Common generators: index, tag, category, archive, sitemap, feed, etc.
  public_generators: []
  # Add "noindex" meta tag to prevent hidden posts from being indexed by search engines
  noindex: true

e.g. Set filter to secret, so you can use secret: true in front-matter instead.

Note: although most of generator plugins respect a naming convention that they register generator with the name in their package names, the generator name could be arbitrary. For example, hexo-generator-searchdb does not register generators with name searchdb, but xml and json. For accurate generator name, you should check their source code.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].