Contact with Ghost for several years, especially last year after building a blog using Ghost, in the recent period of time, Ghost updated version 4.0, this is so far, the biggest upgrade of Ghost, weekend took time to upgrade my blog, good experience, the new Ghost4.0, It is already a very complete blog system.

Official website town building:

ghost.org/features/

Logos have also become more design oriented.

One of the biggest changes in the update is the native support for membership, which is officially advertised as the ability to access Stripe for paid subscriptions (no Alipay, bad reviews), as well as Members and Newsletters, making it easy for small, individually-built websites to gain membership.

Only this feature was actually a bit chicken ribs at home, first of all, the Stripe is too little, in the country with second, members and site links, mainly through the mail, at home, this is one of the more backward form, after all, we have more powerful real-time communications technology, but better than nothing, open the mail subscription, It’s also a kind of broadcast propaganda.

In addition to the Members feature, Ghost4.0 also includes a major update to the backend management system, a better UI design, the addition of Dashboard, and stronger support for previews.

You can now preview how articles will look on the Web, mobile, notification mail, and even Twitter, FB, and Google searches before Posting.

At the same time, Ghost’s Markdown editor is the most excellent MD editor I have ever seen. Due to a Bug in the old version, there are some problems in the support of non-English characters in the first line, and the first input will be truncated. However, the editor of version 4.0 has fixed this Bug that has lasted for several versions, and the input experience is very smooth. At the same time support in the Ghost blog directly copy, upload input picture, save directly to the Ghost server.

However, I did not use this method. After all, the traffic and bandwidth of Tencent Cloud server are expensive, so it would be very stressful to directly put them on the cloud server. Therefore, I choose to upload pictures to COS and display them through links, which can not only reduce the pressure on the cloud server, but also reduce the cost of using the cloud server.

In addition, Ghost’s editor supports inserting a lot of rich text content that isn’t supported by Markdown.

These contents have a good display effect on Ghost, so if there is no pressure from the server, directly use Ghost, you can complete a set of article publishing, editing and operation work.

In addition to this, Ghost4.0 has a number of performance optimizations, not only package size, but also startup speed and runtime speed, page content loads faster than the previous version, and the update is a lightweight WordPress.

My blog also took advantage of this update to add a subscription function (all free). Ghost’s email subscription function is implemented through Mailgun. First, you need to create a free account at Mailgun. Then in the Domain Setting of the Mailgun, select SMTP.

All we need is this automatically generated SMTP username and password.

After getting this, go to the Ghost root directory on the server, find the config.production.json file, and add the following configuration in mail.

// config.production.json

"mail": {
  "transport": "SMTP",
  "options": {
    "service": "Mailgun",
    "auth": {
      "user": "[email protected]",
      "pass": "1234567890"
    }
  }
},
Copy the code

Both user and pass can be found in the code sample below Mailgun, which can be copied directly.

Finally, execute Ghost Restart to restart the service to complete the deployment.

For more information, please refer to the official documentation:

Ghost.org/docs/config…

Finally, in the Portal of Ghost backstage, enable Newsletters, configure the domain name and API Key of Mailgun, as well as the email information. Now, in the lower right corner of qunyingchuan web page, you can see the “follow me” button, welcome everyone to subscribe, after the release of new articles, we will notify you through email.

I would like to recommend my website xuyisheng. Top/focusing on Android-Kotlin-flutter welcome you to visit