0

采用Node.js 开发的博客系统,Ghost 0.4 发布

jopen 11年前

Ghost 是一个开源的博客平台,  可以把他看作 WordPress 的一个挑战者. 现阶段的 WordPress 已经可以明显感觉到有些臃肿不堪, 无论是构架, 设计,  还是实现处处都显示出这是一个 10 年前就诞生的项目, 尤其是最近几个版本更新, 几乎都只是在功能和交互层面作出改进,  而看不到本质上的进步和优化. 因此我更愿意把 Ghost 看作 WordPress 的继任者. 同时, Ghost 基于 JavasSript 的 Node.js 进行开发, 在可预见的未来里, JS 无疑比 PHP 有着更多的优势.

先简单说一下我认为 Ghost 具备或即将具备的几点优势:

  • 从头写起, 比 WordPress 等现行博客平台少了许多「 历史遗留问题 」;

  • Node.js 本身是一个非常优秀的平台;

  • 采用实时架构, 大大提高访问体验. 而 WordPress 前端完全依靠 jQuery, 任何一个动作都需要重载页面;

  • 非常简洁, Zip 安装包只有 1.7M, 部署完成之后在 30M 之内. 运行效率比 WordPress 高上一个数量级;

  • 专注于博客内容本身, 而不需要用户去关心博客平台的种种问题. 采用了 Markdown 编辑器, 有着非常棒的写字体验;

  • 搭建极其简单( 至少 Windows 下本地搭建是这样的 ), 可以说不需要任何编程基础, 降低了写博客的门槛.

当然咯作为一个新生的博客平台, 现阶段还存在较多的不足. 不过考虑到目前仍处于 0.3.3 版本, 连稳定版第 1 版都算不上, 可见开发者仍然对 Ghost 充满了信心.

  • 目前的功能太少, 后台可以说是简陋不堪. 不过在 Ghost 开发者的博客中提到 0.4 版本中才会加入 Dashboard 的功能, 那么目前的暂时算作迷你后台吧;

  • 目前支持 Node.js 的空间商少之又少, 很难将 Ghost 发布出去. 这个页面有 说明这点, 目前只有Amazon EC2, DigitalOcean, Rackspace Cloud 等云服务商, Webfaction, Dreamhost 等 VPS 服务提供商能够托管 Ghost, 而采用 cPanel 面板的一系列独立主机以及虚拟空间都是为 PHP 服务,  所以无法支持 Ghost;

  • 主题和插件的数量远不及 WordPress, 目前官网只有十个左右的主题供下载或购买, 而且质量不敢恭维.

  • 很多基本功能在现在的 0.3.3 版本中还未出现, 比如多用户登陆, 发起评论等. 目前只能通过 Disqus 等评论系统来实现评论功能. 不过这些不是大问题, 接下来的版本中肯定会给予解决.

Today we are releasing Ghost 0.4 - the next minor release of the Ghost blogging platform. With a great deal of shiny new things.

This release represents a total of 374 commits across 178 issues from 88 incredible contributors all over the world. It's a cleaner, faster, more sophisticated Ghost all round. It enjoys Johnnie Walker Blue Label Scotch, Mozart, and the refined flavour of a premium cigar.

aton.png

Aton - the Egyptian God of Sun - is the first release named for one of our 3 Kickstarter backers who pledged £1,000 to making Ghost a reality last year. Aton Energy develops smart, clean technologies to make your life easier and greener. They're pretty awesome.

What's in The Box

Ghost 0.4 is chock full of features, improvements and fixes. We really think you're going to love this update. Here are just a few of our favourite things in this release:

  • Static pages. You can now toggle any post to be a "page" from within your post settings menu. This will remove it from your post feed. About / Contact / Terms galore!
  • Unsaved changes notifications. We'll now give you a heads up when you're about to lose unsaved changes. So you can, you know, save.
  • Featured posts. You can now mark posts as featured, and style them accordingly from within your theme.
  • Sexy new loading bar. Always know when Ghost is doing something, a little blue bar crawls across the screen to let you know!
  • Quick edit post urls. You can now slap /edit/ on the end of any post URL and, boom, you're editing it.
  • Date based permalink support. If you like that kind of thing.
  • SSL support and a more secure password reset process.
  • Over 100 bugfixes and minor improvements!
  • Much, much more

Ghost 0.4 also introduces an automatic update check service to let you know when a new version of Ghost is available (woo!). Ghost.org collects basic anonymous usage statistics from update check requests. For more more information, see the update-check.js file in Ghost core. This service can be disabled with a flag in config.js at any time, if required.

How to Upgrade

Users of our Hosted Platform on Ghost.org will be automatically updated over the course of the coming days. Have some Jonny Walker Blue Label and put your feet up. You're welcome.

For people running Ghost on their own servers, you will need to download Ghost 0.4 and then check out the upgrade documentation over on Github. If you're using the default theme without modifications, be sure to drop in a fresh copy of that - too!

Credits

This release was lovingly crafted by...

Hannah Wolfe, Fabian Becker, Sebastian Gierlinger, John O'Nolan, Harry Wolff, Jacob Gable, William Dibbern, Jakob Gillich, Matthew Harrison-Jones, Michael Bradshaw, Zach Schneider, cobbspur, jamesbloomer, Dane Springmeyer, Sebastian Gräßl, Zach Geis, buddhamagnet, Benjamin Chodoroff, Daniel Hanson, Gabor Javorszky, Mark Berger, Matt DuVall, Patrick Garman, Seb Gotvitch, Tim Griesser, Tony Gaskell, b1nd, germanrcuriel, remixz, sjama, Ben Gladwell, Declan cook, Derek Myers, Devin Doolin, Enrique Chavez, Harry Walter, Henning Sprang, Jacob Kaplan-Moss, Jacques Marneweck, Jeff Escalante, Jonathan Johnson, Jono Warren, Jorge Niedbalski, Karl Mikkelsen, Karolis Dzeja, Kumar Abhinav, Lev Gimelfarb, Lucas, Luke Arduini, Manuel Gellfart, Matheus Azzi, Matt Florence, Matt Hughes, Matthew DuVall, Michael Nason, Micheil Smith, Nick Donohue, Nick Pfisterer, Nick Schonning, Pascal Borreli, Paul, Paul Adam Davis, Peter deHaan, Ryan Powell, Ryan Seys, Sean Hellwig, Simone D'Amico, StevenMcD, Talon, Thomas Faurbye Nielsen, Tim Mansfield, Tom Gillett, Vineet Sinha, WangSai, Will Glynn, William Golden, Zlatan Vasović, abe33, ali, andy matthews, danschumann, enahs, jtw, moritz haarmann, nason, nicovalencia, omeid and rektide.

Thank you all!

Ghost 0.4 is available right now on Ghost.org. Users of the Ghost hosted platform will be automatically upgraded over the coming days.