-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Theme doesn't work with hexo 2.8.3 #3
Comments
Hmm looks like hexo-handlebars isn't rendering for some reason. Is it On Sun, Nov 2, 2014, 6:14 AM Vaidas Mykolaitis notifications@github.com
|
This is my package.json
|
I found what the problem was:
this line of code inside of |
I can confirm a similar issue on my hexo 2.8.3 instance and @codepreneur's workaround helped. seems the that template line might have caused this error when running $ hexo generate
[info] Files loaded in 0.064s
[error] HexoError: Render failed: archives/index.html
TypeError: Cannot call method 'slice' of undefined
at Object.module.exports.asset (/home/yuvilio/ws/sites/hexo/hexo-hexium/themes/hexium/helper/index.js:19:14)
at Object.eval (eval at <anonymous> (/home/yuvilio/ws/sites/hexo/hexo-hexium/node_modules/hexo-renderer-handlebars/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:189:23), <anonymous>:42:120)
at /home/yuvilio/ws/sites/hexo/hexo-hexium/node_modules/hexo-renderer-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:86:31
at /home/yuvilio/ws/sites/hexo/hexo-hexium/node_modules/hexo-renderer-handlebars/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:465:21
at handlebarsRenderer (/home/yuvilio/ws/sites/hexo/hexo-hexium/node_modules/hexo-renderer-handlebars/index.js:32:10)
at /home/yuvilio/.nvm/v0.10.33/lib/node_modules/hexo/lib/extend/renderer.js:78:38
at b (domain.js:183:18)
at Domain.run (domain.js:123:23)
at store.(anonymous function) (/home/yuvilio/.nvm/v0.10.33/lib/node_modules/hexo/lib/extend/renderer.js:77:9)
at /home/yuvilio/.nvm/v0.10.33/lib/node_modules/hexo/lib/core/render.js:96:9 Also, my hexium's package.json didn't seem to have the packages needed:
I had to $ npm install --save handlebars hexo-renderer-handlebars moment |
When I
git clone git@github.com:jaredly/hexium.git themes/hexium
then changetheme
tohexium
in_config.yml
and thenhexo server
when I go to the browser I get:If I then do
npm install hexo-renderer-handlebars --save
I get :If I then
npm i moment --save
then I get:Help :)
The text was updated successfully, but these errors were encountered: