V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
eatradish
V2EX  ›  问与答

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

  •  
  •   eatradish · 2017-05-17 18:20:58 +08:00 · 3602 次点击
    这是一个创建于 2876 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用 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

    3 条回复    2017-12-06 21:01:58 +08:00
    eatradish
        1
    eatradish  
    OP
       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
        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
        3
    8bit  
       2017-12-06 21:01:58 +08:00 via Android
    @charzluo 谢谢大兄弟啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   971 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 22:03 · PVG 06:03 · LAX 15:03 · JFK 18:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.