主要看看跳转后的url是什么,如果url异常,就需要在站点配置文件(注意不是主题配置文件)下面看看你的url和永久链接设置的是否正确。如下所示:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://hellozhaozheng.github.io
root: //
permalink: z_post/:title/ #这里一定要注意,z_post的前面绝对不能加 / ,否则就会挑战异常
permalink_defaults:
一直处于加载状态
首先看是不是有哪些文件的title命名方式有问题, 已知的问题有: 不能有包含半角的冒号(全角可以), 这个可以用hexo g得知, 如果有问题, 则hexo g会报错
方法一: hexo clean + hexo g 重新生成search.xml文件
方法二: 更新searchdb插件: npm install hexo-generator-searchdb --save
方法三: 文章太多时, 尝试将_comfig.yml中Local Search下的limits设置的更高一些