We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我把根目录下的root设置成我的subdirectory路径,然后发现搜索无法正常使用。控制台返回GET /content.json 404 0.149 ms - 151
The text was updated successfully, but these errors were encountered:
貌似是因为作者没有考虑搜索时的子目录问题? 将/themes/BlueLake/source/js/search.json.js里的"/content.json"改成"/your subdirectory/content.json"就可以显示搜索结果,但是搜索结果的链接是不正确的,仍然缺少子目录名。
Sorry, something went wrong.
@HiedanoAkyuu
我有一个不是很优雅的修补方案:
xhr.open('GET', '/content.json', true);
xhr.open('GET', '/YOUR SUBDIRECTORY/content.json', true);
a(href="/{path}",title="{title}")
a(href="/YOUR SUBDIRECTORY/{path}",title="{title}")
这样搜索功能就正常了。
npm install hexo-generator-json-content --save
No branches or pull requests
我把根目录下的root设置成我的subdirectory路径,然后发现搜索无法正常使用。控制台返回GET /content.json 404 0.149 ms - 151
The text was updated successfully, but these errors were encountered: