Skip to content

Commit

Permalink
更改隐藏设置
Browse files Browse the repository at this point in the history
  • Loading branch information
Meowjay1110 committed Nov 7, 2023
1 parent 8753a07 commit 2d2cda1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 16 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,21 @@ deploy:
repo: git@github.com:meowjay1110/meowjay.github.io.git
branch: main

# Hide posts
hide_posts:
# 是否启用 hexo-hide-posts
enable: true

# 隐藏文章的 front-matter 标识,也可以改成其他你喜欢的名字
filter: hidden

# 为隐藏的文章添加 noindex meta 标签,阻止搜索引擎收录
noindex: true

# 设置白名单,白名单中的 generator 可以访问隐藏文章
# 常见的 generators 有:index, tag, category, archive, sitemap, feed, etc.
allowlist_generators: ['*']

# 设置黑名单,黑名单中的 generator 不可以访问隐藏文章
# 如果同时设置了黑名单和白名单,白名单的优先级更高
blocklist_generators: ['index','archive']
16 changes: 0 additions & 16 deletions scripts/acl.js

This file was deleted.

0 comments on commit 2d2cda1

Please sign in to comment.