求助, Hexo 生成的博文内容不正常

2017-05-17 18:20:58 +08:00
 eatradish

使用 Hexo d -g 生成的页面是 index.jade 的,显示:

extends partial/layout

block container
    include mixins/post
    +posts()

block pagination
    include mixins/paginator
    +home()

block copyright
    include partial/copyright

效果如这里:eatradish.github.io

npm install --save hexo-renderer-jade 显示:

hexo-renderer-jade@0.4.0 node_modules/hexo-renderer-jade
└── pug@2.0.0-rc.1 (pug-runtime@2.0.3, pug-strip-comments@1.0.2, pug-load@2.0.6, pug-linker@3.0.0, pug-code-gen@1.1.1, pug-parser@2.0.2, pug-lexer@3.1.0, pug-filters@2.1.2)

看样子应该是装好了? 但就是没法正常显示.... 使用的主题是 apollo

3332 次点击
所在节点    问与答
3 条回复
eatradish
2017-05-17 18:34:31 +08:00
在安装 Apollo Github 的依赖时的信息:
```
➜ hexo-blog proxychains -q npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive

npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
hexo-generator-archive@0.1.4 node_modules/hexo-generator-archive
├── object-assign@2.1.1
└── hexo-pagination@0.0.2 (utils-merge@1.0.0)

hexo-renderer-jade@0.4.0 node_modules/hexo-renderer-jade
└── pug@2.0.0-rc.1 (pug-runtime@2.0.3, pug-strip-comments@1.0.2, pug-load@2.0.6, pug-code-gen@1.1.1, pug-linker@3.0.0, pug-parser@2.0.2, pug-filters@2.1.2, pug-lexer@3.1.0)

hexo-generator-sitemap@1.1.2 node_modules/hexo-generator-sitemap
├── object-assign@4.1.1
├── minimatch@3.0.4 (brace-expansion@1.1.7)
└── nunjucks@2.5.2 (asap@2.0.5, yargs@3.32.0, chokidar@1.7.0)

hexo-generator-feed@1.2.0 node_modules/hexo-generator-feed
├── object-assign@4.1.1
└── nunjucks@2.5.2 (asap@2.0.5, yargs@3.32.0, chokidar@1.7.0)

hexo-browsersync@0.2.0 node_modules/hexo-browsersync
├── merge@1.2.0
├── bluebird@2.11.0
├── connect-injector@0.4.4 (q@1.5.0, stream-buffers@0.2.6, uberproto@1.2.0, debug@2.6.7)
└── browser-sync@2.18.11 (server-destroy@1.0.1, emitter-steward@1.0.0, dev-ip@1.0.1, qs@6.2.1, immutable@3.8.1, ua-parser-js@0.7.12, browser-sync-client@2.5.0, http-proxy@1.15.2, opn@4.0.2, resp-modifier@6.0.2, connect@3.5.0, serve-static@1.12.2, eazy-logger@3.0.2, fs-extra@3.0.1, socket.io@1.6.0, micromatch@2.3.11, socket.io-client@1.6.0, serve-index@1.8.0, bs-recipes@1.3.4, portscanner@2.1.1, rx@4.1.0, easy-extender@2.3.2, browser-sync-ui@0.6.3, chokidar@1.7.0, yargs@6.4.0, localtunnel@1.8.2)
```
charzluo
2017-11-23 00:29:46 +08:00
先执行这个:
npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive

再执行 git clone 就 OK 了
8bit
2017-12-06 21:01:58 +08:00
@charzluo 谢谢大兄弟啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/362017

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX