Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexo-generator-searchdb依然可以搜到隐藏page #40

Open
KoalaMini opened this issue Sep 21, 2024 · 1 comment
Open

hexo-generator-searchdb依然可以搜到隐藏page #40

KoalaMini opened this issue Sep 21, 2024 · 1 comment

Comments

@KoalaMini
Copy link

问题描述

PixPin_2024-09-21_17-24-45

排查线索信息

输入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类型的隐藏?

@prinsss
Copy link
Owner

prinsss commented Oct 24, 2024

Hi,为了方便排查问题,请贴出你的 _config.yml 中的插件配置,以及 hexo clean && hexo generate --debug 输出的完整日志(敏感内容可以删减处理,但请尽量保留 hexo-hide-posts: 开头的日志)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants