All Projects → printempw → Hexo Hide Posts

printempw / Hexo Hide Posts

Licence: mit
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

Labels

Projects that are alternatives of or similar to Hexo Hide Posts

Font
用于个人博客所用的中文字体
Stars: ✭ 61 (-34.41%)
Mutual labels:  hexo
Hexo Server
Server module for Hexo.
Stars: ✭ 75 (-19.35%)
Mutual labels:  hexo
Hexo Album
add album&photos with Hexo blog
Stars: ✭ 85 (-8.6%)
Mutual labels:  hexo
Hexo Theme Argon
Argon-Theme 的 Hexo 移植版
Stars: ✭ 64 (-31.18%)
Mutual labels:  hexo
Hexo Filter Github Emojis
github emojis for hexo! 🎉
Stars: ✭ 71 (-23.66%)
Mutual labels:  hexo
Meilidu Hexo
MeiliDu, beatuiful reading theme for Hexo.
Stars: ✭ 78 (-16.13%)
Mutual labels:  hexo
Hexo Theme Yilia
一个简洁优雅的hexo主题 A simple and elegant theme for hexo.
Stars: ✭ 8,183 (+8698.92%)
Mutual labels:  hexo
Hexo Theme Melody
🎹A simple & beautiful & fast theme for Hexo.
Stars: ✭ 1,306 (+1304.3%)
Mutual labels:  hexo
Hexoplusplus
🎁基于CloudFlareWorker的无服务器Hexo后端,目标:解决静态博客所有痛点[文章编辑、图片上传、博主活跃信息统计、博主说说、Twikoo加强版、阅读量统计【尚未完成】]
Stars: ✭ 72 (-22.58%)
Mutual labels:  hexo
Hexo Client
Hexo 博客系统客户端
Stars: ✭ 82 (-11.83%)
Mutual labels:  hexo
Farbox Next
A hexo theme NexT for Farbox.
Stars: ✭ 66 (-29.03%)
Mutual labels:  hexo
Hexo Theme Archer
🏹 A smart and modern theme for Hexo.
Stars: ✭ 1,163 (+1150.54%)
Mutual labels:  hexo
Hexo.el
Use Hexo in Emacs elegantly
Stars: ✭ 78 (-16.13%)
Mutual labels:  hexo
Hexo Theme Hueman
A redesign of Alx's wordpress theme Hueman, ported to Hexo.
Stars: ✭ 1,119 (+1103.23%)
Mutual labels:  hexo
Hexo Theme Webstack
A hexo theme based on webstack. | 一个基于webstack的hexo主题。
Stars: ✭ 86 (-7.53%)
Mutual labels:  hexo
Hexo Util
Utilities for Hexo.
Stars: ✭ 58 (-37.63%)
Mutual labels:  hexo
Hexo Theme Paperbox
A responsive paper-like theme for hexo blog.
Stars: ✭ 76 (-18.28%)
Mutual labels:  hexo
Laraduoshuo
Laravel 5 实现的私有评论系统,用于 Hexo、Jekyll 等静态博客系统
Stars: ✭ 92 (-1.08%)
Mutual labels:  hexo
Hexo Theme Believe
A simple theme for hexo Sample:
Stars: ✭ 86 (-7.53%)
Mutual labels:  hexo
Hexo Theme Even
🚀 A super concise theme for Hexo
Stars: ✭ 1,244 (+1237.63%)
Mutual labels:  hexo

hexo-hide-posts

build-status npm-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/.

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:
  # 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.

License

MIT License (c) 2019 printempw

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].