Just Sword Wang's Blog

更新Ghost到3.x.x

上次升级还是去年9月,时隔一年多了。虽然也已经没有什么真实吸引我的新功能,但每年例行的升级还是会做一下。新版本似乎已经支持了自定义路由,恰恰是我从wordpress转到ghost时最需要的功能,不过后来还是通过nginx的映射解决了,感觉现在也没啥动力再去修改配置。毫无疑问ghost的管理能力一直在加强,很多散落的静态页面也能更有效的管控起来。

有了ghost-cli,更新还是非常顺利和便捷,有命令行辅助,除了遇上一些国内下载的问题,还有就是几乎忘记了运行ghost的用户名密码外,过程平滑。当然,从2.x.x更新到3.1.1,大版本升级导致主题还是有些兼容工作要做,不过照着提示信息也能在短时间内修正好。

Errors
    File: error.hbs
    - The {{@blog}} helper should be replaced with {{@site}}
    - Replace {{error.code}} with {{error.statusCode}}

    File: partials/footer.hbs
    - The {{@blog}} helper should be replaced with {{@site}}

    File: partials/header.hbs
    - The {{@blog}} helper should be replaced with {{@site}}

    File: styles
    - The .kg-bookmark-card CSS class is required to appear styled in your theme
    - The .kg-bookmark-container CSS class is required to appear styled in your theme
    - The .kg-bookmark-content CSS class is required to appear styled in your theme
    - The .kg-bookmark-title CSS class is required to appear styled in your theme
    - The .kg-bookmark-description CSS class is required to appear styled in your theme
    - The .kg-bookmark-metadata CSS class is required to appear styled in your theme
    - The .kg-bookmark-icon CSS class is required to appear styled in your theme
    - The .kg-bookmark-author CSS class is required to appear styled in your theme
    - The .kg-bookmark-publisher CSS class is required to appear styled in your theme
    - The .kg-bookmark-thumbnail CSS class is required to appear styled in your theme


Warnings
    File: error.hbs
    - Replace {{#each}} with {{#foreach}}

    File: partials/footer.hbs
    - Assets such as CSS & JS must use the {{asset}} helper
    - Assets such as CSS & JS must use the {{asset}} helper

主题一些helper有更名,感觉比原来要更合理,从@blog变更为@site,也看的出,ghost的格局发生了质的变化。通过gscan.ghost.org能快速定位到主题内的问题,改完验证上传启用一气呵成。

更新后到后台看了下,设计风格并无二致,功能更加合理,特别时管理tag的能力强好多,信息展示和操作,还有自定义页面的能力,都好用不少。不过比起当初编写页面的改进,这些辅助功能的进化虽然也很惊艳,但毕竟没有Post页常用。很多新特性还在体验中,总之就是,好用!

PS:习惯性的想用pm2重启ghost,发现列表里空空如也,想了老半天才想起来要用ghost-cli操作...


评论加载中...

Disqus提供评论支持,如果评论长时间未加载,请飞跃长城。