Closed mosdeo closed 4 years ago
Have you had the requested dependencies install?
$ cd /path/to/themes/suka
$ npm i
$ cd ../..
Have you had the requested dependencies install?
$ cd /path/to/themes/suka $ npm i $ cd ../..
是的,我有做這一步。不過是因為出錯,仔細看文件才補做的,就怕有順序相依性。
I think you forget to append additional config to site config.
cat themes/suka/site_config.yml >> _config.yml
I think you forget to append additional config to site config.
cat themes/suka/site_config.yml >> _config.yml
沒錯,補上這一步就成功了!謝謝! 請問是你怎麼從錯誤訊息中看出來的?
@mosdeo https://github.com/SukkaW/hexo-theme-suka/blob/cded12606897228026922311d75086eed6288beb/scripts/search/index.js#L8 这里读的是 hexo site 的 config。
I certify that I have first consulted (check with "x")
我确认我已经查看了 (选择时请使用 "x" 取代方括号中的空格)
如果你遇到了运行
hexo g
hexo s
时报错If you get error when you are running
hexo s
hexo g
.Node.js and NPM Information
Node.js 和 NPM 的相关信息
Package dependencies Information
依赖包相关信息
Hexo version
Hexo 版本号
Hexo & Theme Configuration
站点配置文件和主题配置文件
目錄下的 _config.yml 局部:
主題下的 _config.yml 如同 _config.example.yml 沒修改過。
Error Log
报错日志
如果你在浏览器中发现了问题
If you find something wrong when visiy your blog in browser.
Which device am I using, such as Android, iOS, Windows, Linux, MacOS
我使用的平台,如 Android、iOS、Windows、Linux、MacOS 等
Which brows am I using, such as Chrome 58.0.3029.110 (64-bit)
我使用的浏览器(如 Chrome 58.0.3029.110 64 位)
Dev Tool - Console.log
开发者面板的控制台日志
What you are expected and what you actually get
预期结果和你的实际结果
Demo site related with this issue, JSFiddle and gist are welcomed.
和 issue 有关的在线演示页面,推荐使用 JSFiddle 和 gist
Link(s) to source code or any usefull link(s)
相关源码或有用资源的入口