Ghost 开源博客平台

Ghost 是一个简洁、强大的写作平台。你只须专注于用文字表达你的想法就好,其余的事情就让 Ghost 来帮你处理吧。

Ghost 1.0 版本正式发布

大约四年前,我们在 Kickstarter 上推出了一个还处在原型阶段的 Ghost,这个小小的原型寄托了我们的一个想法,那就是创建 Web 上的下一代伟大的开源博客平台。

在初期阶段,我们真的只是专注于让所有功能能够运转起来。Ghost 是 Node.js 平台上为数不多的一个应用,当然,一定会伴随着陡峭的学习曲线。我们在 2013 年 9 月发布了第一个版本 Ghost 0.3,从那时起,接下来我们总共发布了 99 个版本,一直到 Ghost 0.11.9。

在那个时候,我们目睹了 Ghost 生态的成长和繁荣。从深受大家喜爱的互联网创业公司,例如 SquareTinder,到这个世界上重要的大型机构,例如 Elon Musk 的 OpenAIMozilla,都在使用 Ghost。甚至在 HBO 的 Silicon Valley 剧集里,Ghost 还小露了一面。

今天 Ghost 迎来了第 100 个版本,巧合的是,这个版本是 Ghost 1.0.0

这个版本包含了 2600 多个 commit,涉及到功能特性、重构、改进和修复 bug, 这让整个代码基础更加健壮和可靠。


The headline feature of Ghost 1.0 is a brand new editor, and it's one that we're incredibly excited about, because we think it paves the way toward one of the most powerful publishing experiences on the web.

Ghost has always been known and praised for its simple, yet powerful Markdown editor, which allows for a great writing experience alongside easy document formatting.

Our new editor offers a tremendous upgrade to that experience, with a cleaner design, a new toolbar, support for Markdown tables, CommonMark, Github-flavoured Markdown and multiple view options depending on whether you prefer a focused single column or a side-by-side preview.

Ghost 1.0 Editor

While this is already a significant upgrade over the previous writing experience, there's a whole lot more going on behind the scenes.

The truth is that Ghost 1.0 doesn't just have one new editor. It has two.

Let me explain:

Improving Ghost's Markdown editor has always been high on our list of priorities, but for a long time we've wanted to do more. Modern publications aren't just text based, they're comprised of diverse, dynamic elements from photographs to videos, detailed charts and rich embeds. We wanted to build something entirely new which would support all of those use-cases, and be extensible for new types of content in the future.

New-age WYSIWYG editors are a dime-a-dozen these days. Everyone and their dog seems to have a fancy document editor, but all of them suffer from the same fundamental problem: A fragile (or non-existent) underlying document storage model, which means that no matter how good they look, they fall apart pretty quickly.

Back in 2015 we started talking to Matt and Cory from the Ember.js core team, who had started building a portable JSON-based document storage format called MobileDoc as a part of a long term project for - one of the web's most successful modern publishers. MobileDoc is unique as an open standard which can store dynamic nested blocks of content in a sane manner, and translate their output into a variety of formats.

For almost two years we've been building a powerful block-based editor on top of MobileDoc - which is included in Ghost 1.0 for the first time. We're calling it Koenig.

The secret is that the upgraded Markdown editor is just a content block within the new Koenig editor:

Ghost 1.0 and its upgraded Markdown editor is the first step toward a much more powerful writing experience. Over the rest of the year we'll be adding support for more content types, and making them extensible so developers can create their own.

Here's a very simple, early demo of where we're going next with the Koenig editor later this year:

But wait there's more!

焕然一新的 UI

We've given Ghost admin a fresh lick of paint, tidied up the settings area, re-jigged buttons, a better publishing workflow, and many other small visual improvements.

Oh, and you can also filter the content screen now by post state, tag and author - so it's way easier to sort through large archives of content.

Content management screen

A new default theme design

Casper, our default theme, has now reached its 2.0 milestone and has a shiny new look to celebrate the occasion. This new layout was designed to accommodate all the new Ghost features we've released over the last few years, and provide a more flexible/customisable base for most publications.

Casper 2.0

Night shift mode

New in beta, a night shift mode to reverse the colours of Ghost admin for a gentler experience on the eyes when working in dim lighting. (Or just feeling like you're writing code)

Night shift

Publication icons

As well as a publication logo Ghost now also supports publication icons; handy for a smaller square logo to be used with theme UI and as a site favicon.

Publication icon

A whole lot more

There are huge number of changes and improvements to enjoy.

  • A brand new importer which works a lot better than the old importer.
  • Google AMP is now optional rather than always-on.
  • Custom redirects can now be set via a config file.
  • Users can be suspended if required.
  • Collision detection, so if two people are editing a post at the same time they won't override each other. That was, um. Not ideal.
  • A new tour feature for new Ghost users to find their way around.

Welcome Tour

There are also a huge number of changes for developers in Ghost 1.0, which we've covered over on the developer blog. There are important breaking changes to the theme API.

How to upgrade to Ghost 1.0

This is our first major release which breaks backwards compatibility, so the upgrade process is more involved than usual.

If you don't have a Ghost site: Try it out for free with our 14 day trial on Ghost(Pro). All new sites automatically run on Ghost 1.0.

If you have an existing Ghost(Pro) site: The upgrade process will be mostly automated for you, with a couple of steps. We're upgrading people in batches over the coming weeks and once your account is ready to be migrated, you'll see an "Upgrade to Ghost 1.0" button when you log into, with instructions for what to do next.

GhostPro Upgrade

If you self-host Ghost: You will need to set up a new Ghost 1.0 install, and export/import your content over. We've put together a full migration guide which should help.

Because the upgrade process is more complex this time around, we've marked Ghost 0.11 as a Long Term Support (LTS) release. We will continue to provide maintenance and security updates for Ghost 0.11 for the next 6 months.

What's coming next

Ghost 1.0 was an incredibly long and complex release cycle. It took us almost a full year, and things have been pretty quiet around here since then. We learned a lot from it, but we're planning on going back to smaller and much more frequent (SemVer) releases from here on in.

Also, hello from Dubai! We've got the whole Ghost team here finalising this release and working hard to make sure it's a good one :) We're going to record a little Ghost 1.0 Release podcast tomorrow, so let us know in the comments if you have any questions - and we'll discuss them IRL!

In the mean time, could we ask for your help to share the news? Here's a pre-written status to make it extra simple:

Just launched! Ghost 1.0 - A brand new editor, updated design, and ludicrous improvements all round.

Tweet this now Buffer it for later

Please enjoy these 1-click buttons for Ultimate Efficiency™️, or of course you can also just copy/paste if that's more your thing.

Team Ghost in Dubai

We're also answering questions over on ProductHunt right now!


关于作者 王赛