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

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

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

    使用 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 显示:

    [email protected] node_modules/hexo-renderer-jade
    └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
    

    看样子应该是装好了? 但就是没法正常显示.... 使用的主题是 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 [email protected]
    npm WARN optional dep failed, continuing [email protected]
    npm WARN optional dep failed, continuing [email protected]
    npm WARN deprecated [email protected]: Use uuid module instead
    [email protected] node_modules/hexo-generator-archive
    ├── [email protected]
    └── [email protected] ([email protected])

    [email protected] node_modules/hexo-renderer-jade
    └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

    [email protected] node_modules/hexo-generator-sitemap
    ├── [email protected]
    ├── [email protected] ([email protected])
    └── [email protected] ([email protected], [email protected], [email protected])

    [email protected] node_modules/hexo-generator-feed
    ├── [email protected]
    └── [email protected] ([email protected], [email protected], [email protected])

    [email protected] node_modules/hexo-browsersync
    ├── [email protected]
    ├── [email protected]
    ├── [email protected] ([email protected], [email protected], [email protected], [email protected])
    └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], socket.io@1.6.0, [email protected], socket.io[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
    ```
    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   ·   实用小工具   ·   2761 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:04 · PVG 20:04 · LAX 04:04 · JFK 07:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.