Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Ivan.Nginx
@ivan-nginx
Oh, u about that, i added but on letters NexT. I just not want to HARD rebase.
BTW, i can add it at the right-top. Yeah, good idea.
zhuzhuxia
@zhuzhuyule
if i modify the theme, i will modify Next-theme v5.1 or v6.0 ?
Ivan.Nginx
@ivan-nginx
If u install 6x to separate directory, then, u modify only what u modify.
maskleo
@maskleo

hi,guys! Can anyone help me?
I using the latest version.https://github.com/theme-next/hexo-theme-next.
I has remove node_modules directory and reinstall using npm install.
copy themes/next/source/* to source/*
but exc hexo g
It throws some exception:

D:\blog\masque-fate.github.io>hexo g
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: D:/blog/masque-fate.github.io/source/css/_common/components/highlight/highlight.styl:79:30
   75|
   76|   .gutter pre {
   77|     padding-left: 10px
   78|     padding-right: 10px
   79|     color: $highlight-gutter.color
------------------------------------^
   80|     text-align: right
   81|     background-color: $highlight-gutter.bg-color
   82|   }

$highlight-gutter has no property .color
    at ".gutter pre " (D:/blog/masque-fate.github.io/source/css/_common/components/highlight/highlight.styl:75:4)
    at ".highlight " (D:/blog/masque-fate.github.io/source/css/_common/components/highlight/highlight.styl:39:2)

    at Evaluator.visitMember (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:351:11)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitExpression (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:644:26)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitExpression (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:644:26)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitProperty (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:687:22)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitBlock (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:720:39)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitGroup (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:261:22)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitBlock (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:720:39)
    at Evaluator.Visitor.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:160:18)
    at Evaluator.visitGroup (D:\blog\masque-fate.github.io\node_modules\stylus\lib\visitor\evaluator.js:261:22)

package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.3.9"
  },
  "dependencies": {
    "gitment": "0.0.3",
    "hexo": "^3.2.0",
    "hexo-deployer-git": "^0.3.1",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-searchdb": "^1.0.8",
    "hexo-generator-tag": "^0.2.0",
    "hexo-neat": "^1.0.4",
    "hexo-renderer-ejs": "^0.3.0",
    "hexo-renderer-marked": "^0.3.0",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0"
  }
}
zhuzhuxia
@zhuzhuyule
@maskleo you can check dir .\themes\next\source\css\_common\components\highlight\theme.styl
if you find
$highlight-gutter = {
    color: #869194,
    bg-color: #eff2f3
  }
then check: .\themes\next\source\css\_common\components\highlight\highlight.styl
import style:
@require "theme"
@require "diff"
maskleo
@maskleo

These are exist.
Very strange,I just exc hexo clean and hexo g again,Successfully generated static file.
But exc hexo s,Visit localhost:4000

Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\blog\masque-fate.github.io\themes\next\layout\_scripts\schemes\.swig'
    at Object.fs.openSync (fs.js:653:18)
    at Object.fs.readFileSync (fs.js:554:33)
    at Object.ret.load (D:\blog\masque-fate.github.io\node_modules\swig\lib\loaders\filesystem.js:55:15)
    at exports.Swig.compileFile (D:\blog\masque-fate.github.io\node_modules\swig\lib\swig.js:695:31)
    at Object.eval [as tpl] (eval at precompile (D:\blog\masque-fate.github.io\node_modules\swig\lib\swig.js:498:13), <anonymous>:912:18)
    at compiled (D:\blog\masque-fate.github.io\node_modules\swig\lib\swig.js:619:18)
    at Theme._View.View._compiled (D:\blog\masque-fate.github.io\node_modules\hexo\lib\theme\view.js:127:30)
    at Theme._View.View.View.render (D:\blog\masque-fate.github.io\node_modules\hexo\lib\theme\view.js:29:15)
    at D:\blog\masque-fate.github.io\node_modules\hexo\lib\hexo\index.js:390:25
    at tryCatcher (D:\blog\masque-fate.github.io\node_modules\bluebird\js\release\util.js:16:23)
    at D:\blog\masque-fate.github.io\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (D:\blog\masque-fate.github.io\node_modules\hexo\lib\hexo\router.js:134:3)
    at RouteStream.Readable.read (_stream_readable.js:443:10)
    at resume_ (_stream_readable.js:823:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Too late to rest, if anyone knows how to solve please reply me.Tomorrow morning I will check the reply.thanks!

zhuzhuxia
@zhuzhuyule
@maskleo no such file or directory, open 'D:\blog\masque-fate.github.io\themes\next\layout\_scripts\schemes\.swig'
check .swig
maskleo
@maskleo
I just check out the project,don't modify any code,I think maybe some configuration has error,or version need latest version.
maskleo
@maskleo
I am trying again on a different computer.
maskleo
@maskleo
I have run successfully on another computer, everything is fine. I think I need to double-check and compare the related configuration.Thank you for your reply. @zhuzhuyule
zhuzhuxia
@zhuzhuyule
you are welcome
Yingjie (Iris) Hu
@huyingjie
I have a question. I edited the theme v5.1.3 in my local machine. How can I update the theme to v5.1.4? Is there a place to put customed template files I created to not edit original files of the theme?
zhuzhuxia
@zhuzhuyule
@huyingjie 你改了啥文件都?
Yingjie (Iris) Hu
@huyingjie
@zhuzhuyule _macro下的post.swig
@zhuzhuyule 为什么要出6.0版本. 原作者弃坑了?
zhuzhuxia
@zhuzhuyule
原作者早都停更了,一直是以为俄罗斯友人维护的
post.swig 直接覆盖
就可以了,没影响
Yingjie (Iris) Hu
@huyingjie
@zhuzhuyule 像hugo或者wordpress都可以另外写template, 会override原始的template, 这样就不用修改原始文件了。 hexo有这个功能吗?
zhuzhuxia
@zhuzhuyule
可以添加这个功能
Yingjie (Iris) Hu
@huyingjie
想想也是。 这个theme从2014年就开始了。 干一个项目干4年,而且看不到尽头, 兴趣也磨尽了,是要弃坑的。
data可以另外写文件覆盖
zhuzhuxia
@zhuzhuyule
data?
Yingjie (Iris) Hu
@huyingjie
我习惯直接读英文版的...
zhuzhuxia
@zhuzhuyule
喔,那干翻译应该没问题了
关于这个特性我还没有研究
Yingjie (Iris) Hu
@huyingjie
翻译没有成就感
zhuzhuxia
@zhuzhuyule
你特长什么?
Yingjie (Iris) Hu
@huyingjie
看和谁比
比cs擅长数据分析, 比统计的擅长做网站….
zhuzhuxia
@zhuzhuyule
技术控呀
1.4k star
Yingjie (Iris) Hu
@huyingjie
技术含量挺低的.主要就是做个README.md文件.
大多时间都是花在收集和整理checklist上.
现在我特别佩服做awesome list的那帮人, 做一个list至少要5,6个小时的时间.
zhuzhuxia
@zhuzhuyule
我不太懂这个项目 checklist
Yingjie (Iris) Hu
@huyingjie
就是收集有用的网页, 制作成一张列表
zhuzhuxia
@zhuzhuyule
有没有 实例呢?
懂了
Yingjie (Iris) Hu
@huyingjie
zhuzhuxia
@zhuzhuyule
那看来你需要 这个: https://github.com/zhuzhuyule/HexoEditor
Yingjie (Iris) Hu
@huyingjie
为什么?