Comments (5)
source 下新建一个 search 目录,里面放一个 index.md 文件,内容如下
---
title: Search
date: 2016-05-24 13:45:13
type: "search"
---
from hexo-theme-xoxo.
source 下的 search 目录
另外在 _config.yml 文件加了一行 search_dir: search
hexo g 构建报错
/study/hexo/blog/themes/xoxo/layout/partials/scripts.ejs:122
var search_path = "<%= config.search.path %>";
if (search_path.length == 0) {
search_path = "search.xml";
}
from hexo-theme-xoxo.
@az031120103 哥们你怎么解决这个报错的?
120| });
121| };
>> 122| var search_path = "<%= config.search.path %>";
123| if (search_path.length == 0) {
124| search_path = "search.xml";
125| }
from hexo-theme-xoxo.
@ubuntuvim @az031120103 得在非主题的配置文件 config_yml,配置如下:
search:
path: search.xml
field: post
而不是配置在主题的配置文件里, 文档写错了,建议博主改一下,代码里面明显写的是 config.search 而不是 theme.search,应该是把 search 的配置写在非主题配置文件里面,而不是主题配置文件里面@KevinOfNeu
from hexo-theme-xoxo.
@shenzekun 多谢
from hexo-theme-xoxo.
Related Issues (14)
- 加个分类页面? HOT 1
- 感觉部署之后在别人文章后边加自己二维码这个事情做的有点。。。
- 请问这是怎么回事 HOT 1
- 大佬,请问报错这个是咋回事?
- readingTime is not defined HOT 1
- Bug反馈:搜索结果显示过长,查看相关代码后发现搜索脚本有一处小bug
- 访问页面报错 HOT 3
- busuanzi 改域名了 HOT 1
- 请写一个详细的安装文档 HOT 2
- 火狐浏览器菜单栏显示有问题 HOT 1
- 图片的设置 HOT 2
- 博客之中的图片 HOT 1
- readingTime is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-xoxo.