hexo-hide-posts
hexo-hide-posts copied to clipboard
hexo-generator-searchdb依然可以搜到隐藏page
问题描述
排查线索信息
输入hexo g --debug的相关信息如下:
09:27:41.718 DEBUG hexo-hide-posts: hidden posts: 0
09:27:41.718 DEBUG hexo-hide-posts: hidden pages: 2
09:27:41.719 DEBUG hexo-hide-posts: compatibility patch applied for Hexo 7.3.0
09:27:41.723 DEBUG Generator: asset
09:27:41.724 DEBUG Generator: page
09:27:41.724 DEBUG Generator: post
09:27:41.725 DEBUG hexo-hide-posts: generating both normal posts and hidden posts
09:27:41.727 DEBUG Generator: hexo-blog-encrypt
09:27:41.727 DEBUG Generator: archive
09:27:41.729 DEBUG Generator: category
09:27:41.730 DEBUG Generator: index
09:27:41.730 DEBUG Generator: xml
09:27:41.736 DEBUG Generator: sitemap
09:27:41.750 DEBUG Generator: tag
hexo-generator-searchdb生成的search.xml相关信息如下:
<url>/****/happy2024.html</url>
<content><![CDATA[<div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="Oh, this is an invalid password. Check and try again, please." data-whm="OOPS, these decrypted content may changed, but you can still have a look.">
<title>那些记忆</title>
<url>/****/index.html</url>
<content><![CDATA[<p><a href="./happy2024.html">2024年生日快乐</a></p>
<!-- flag of hidden posts -->]]></content>
版本信息如下:
"hexo": "^7.3.0"
"hexo-generator-searchdb": "^1.4.1"
"hexo-hide-posts": "^0.4.3"
是不支持page类型的隐藏?
Hi,为了方便排查问题,请贴出你的 _config.yml 中的插件配置,以及 hexo clean && hexo generate --debug 输出的完整日志(敏感内容可以删减处理,但请尽量保留 hexo-hide-posts: 开头的日志)。