Jamling

Results 192 comments of Jamling

@yangql881012 使用本人撰写的[hexo-generator-index2](https://github.com/Jamling/hexo-generator-index2)插件即可

@yangql881012 请在百度站长平台上的站内搜索工具上做相关的设定与操作。

1,[hexo-generator-index2](https://github.com/Jamling/hexo-generator-index2)插件有[中文文档](https://github.com/Jamling/hexo-generator-index2/blob/master/README_zh.md),并不复杂。如有疑问,请至[hexo-generator-index2](https://github.com/Jamling/hexo-generator-index2)项目提交Issue。 2,百度站内搜索,是需要自己在百度上进行操作,不是一两句可以说清楚的。主要就是在*结果页管理*中*提交网页列表*将sitemap提交进去。如不清楚,可以咨询百度客服。

你的node.js版本可能太低了

> ```yaml > index2_include_index: true > index2_generator: > - layout: 'index' > path: '' > index: true > per_page: 10 > order_by: -sticky > ``` > > > Then set...

那就不要用post,post会在index/tags/categories/archives中看到。 建议使用page,只要不加链接,别人就不知道。 如果非要用post,不想让别人看见,可以对post加密。请见[hexo-theme-nova](https://github.com/Jamling/hexo-theme-nova)

请看一下你的**博客根目录**/node_modules/hexo/node_modules/目录下是否有 ``` ├─cheerio ├─lodash ``` 这两个目录,如果没有,可以在**博客根目录**/node_modules/hexo下安装这两个插件 ``` bash npm install cheerio --save npm install lodash --save ```

@275761919 已修改我之前的备注。 '../../../node_modules/hexo/node_modules/lodash' 指向的位置是`博客根目录/node_modules/hexo/node_modules/lodash`。你的cheerio在hexo的依赖中,那么不应该出现`Error: Cannot find module '../../../node_modules/hexo/node_modules/cheerio'` (对此,我很奇怪)。 暂且不管。万能的解决办法是: 1. 在博客根目录下安装 lodash和cheerio。 2. 修改theme/nova/scripts/helper.js和project.js,将require lodash和cheerio的地方改成 ``` require ('lodash'); require ('cheerio'); ``` 即可

The demo site is https://www.ieclipse.cn, https://jamling.github.io, https://jamling.coding.me

可以使用orderBy排序,也可以将要置顶的文章放入一个专门的目录,然后配置