hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.54k stars 4.86k forks source link

以前hexo2.7.1init的project,现在用hexo2.8.2执行hexo g时报错。 #787

Closed gejiawen closed 10 years ago

gejiawen commented 10 years ago

报错信息如下

Deprecation warning: moment().lang() is deprecated. Use moment().localeData() instead.
[error] { name: 'HexoError',
  reason: 'incomplete explicit mapping pair; a key node is missed',
  mark:
   { name: null,
     buffer: 'categories: Categorías\nsearch: Buscar\ntags: Etiquetas\ntagcloud: Nube de Etiq
: Anterior\nnext: Siguiente\ncomment: Comentarios\narchive_a: Archivo\narchive_b: Archivo: %s
osts: Entradas Recientes\n\u0000',
     position: 186,
     line: 9,
     column: 18 },
  message: 'Process failed: languages/es.yml',
  domain:
   { domain: null,
     _events: { error: [Function] },
     _maxListeners: 10,
     members: [ [Object] ] },
  domainThrown: true,
  stack: undefined }
gejiawen commented 10 years ago

这是什么原因?我使用的theme是light,难道这个theme中使用了被舍弃的moment.js方法?

Xuanwo commented 10 years ago

我觉得有可能,你先升级一下light主题,或者是用landscape试试看

tommy351 commented 10 years ago

Duplicated #722

gejiawen commented 10 years ago

@Xuanwo 蛋疼的是,我之前折腾hexo的时候,大范围的修改了light主题。不想升级啊。

看来这个玩意还是得用默认的,就写写文章就好,折腾样式主题什么的不靠谱啊。

Xuanwo commented 10 years ago

archive_b: Archives: %s => archive_b: "Archives: %s" 只要修改这个就好 @dukewan Thanks, and please allow me to ref your pic. 所有有空格的字段都必须在前后添加双引号

@gejiawen

@tommy351

761

跟这个一样都是moment.js的问题,是不是还有别的原因?

gejiawen commented 10 years ago

我修改了theme下language中的配置,将所有的包含空格的配置项都加了"", 但是又有了新的错误。

[info] Files loaded in 0.094s
[create] Generated: index.html (11ms)
[create] Generated: fancybox/fancybox_loading.gif (3ms)
[create] Generated: fancybox/blank.gif (2ms)
[create] Generated: about/index.md (3ms)
[create] Generated: fancybox/fancybox_loading@2x.gif (2ms)
[create] Generated: fancybox/fancybox_overlay.png (2ms)
[create] Generated: fancybox/jquery.fancybox.css (2ms)
[create] Generated: fancybox/fancybox_sprite@2x.png (2ms)
[create] Generated: fancybox/fancybox_sprite.png (5ms)
[create] Generated: css/style.styl (3ms)
[create] Generated: fancybox/jquery.fancybox.pack.js (2ms)
[create] Generated: css/font/9k-RPmcnxYEPm8CNFsH2gg.woff (2ms)
[create] Generated: css/font/fontawesome-webfont.svg (5ms)
[create] Generated: js/gallery.js (3ms)
[create] Generated: js/jquery.imagesloaded.min.js (1ms)
[create] Generated: js/lib/jquery.min.js (4ms)
[create] Generated: js/lib/html5.js (2ms)
[create] Generated: css/font/fontawesome-webfont.ttf (1ms)
[create] Generated: css/font/fontawesome-webfont.eot (4ms)
[create] Generated: css/font/oUan5VrEkpzIazlUe5ieaA.woff (2ms)
[create] Generated: css/font/fontawesome-webfont.woff (5ms)
[info] 21 files generated in 0.099s

hexo g是并没有解析我的source文件夹?

@tommy351

Xuanwo commented 10 years ago

你source文件的设置是什么?

dukewan commented 10 years ago

@gejiawen

execute

 hexo clean

to delete the cache file when you have some changes of your source folder

qq20140822-1 2x