· 2 分钟阅读时长 · 544 字 · -阅读 -评论

title: “Third-Party Services Used by My Blog” slug: d287b392 date: 2021-01-02 13:34:58 tags:

  • 随笔心得 summary: “An overview of third-party services powering my personal blog, with setup notes and brief impressions.”

元旦假期,花了点时间部署了个人的英文博客站点,与中文博客使用的服务,技术一致,本身只是内容的区别,因此也算回顾了博客部署中用到的vendor服务,这里梳理下。

Hexojs — static blog framework

Using Hexo: posts are written in Markdown and compiled to static HTML, so it’s fast to serve. Downsides: as content grows, build times slow. With 300+ Chinese posts, a full build took ~8 minutes.

This remains unresolved for now.

theme-next

I use theme-next. I customize parts, but keep custom templates/CSS separate to ease framework/theme upgrades.

Vultr

I deployed static pages on Vultr Japan, $6/mo — decent speed from mainland China.

Now migrated to Tencent Cloud.

GitHub

Source code is hosted on GitHub; CD uses GitHub Actions. It’s stable and free.

Telegram Bot

I added notifications for deployments; Telegram is ideal. Using appleboy/telegram-action.

Notes

  1. token通过@BotFather获取,token的格式是1234567890:ABCDEFGHIJKLMN
  2. 利用token获取chartId的URL是https://api.telegram.org/bot1234567890:ABCDEFGHIJKLMN/getUpdates,注意如果返回的结果提示OK,但result没有值,则向创建的bot发送一条消息,再试即可

Let’s Encrypt

Most sites are on SSL now; I use Let’s Encrypt because it’s free and Certbot automates issuance/renewal.

Since I host both Chinese/English sites and an image host, I applied for a wildcard cert.

GitTalk

Comment system based on GitHub Issues — convenient.

Algolia

Search: fast, good UX, and free tier.

Google AdSense

Hosting isn’t free; AdSense may offset costs. Ads do slow page loads, admittedly.

Google Search Console

Webmaster tools:

  1. SEO for Google: submit sitemaps for crawling
  2. Monitor site traffic

Final Thoughts

That’s the stack of third‑party services behind my blog. Even a small blog ties together quite a lot of tech.

Alan H
Authors
开发者,数码产品爱好者,喜欢折腾,喜欢分享,喜欢开源