运行堆栈
网站平台 (The site platform)
This site is a static site built using Hugo, the popular static site generator built using the Go programming language.
该站点是使用Hugo构建的静态站点, Hugo是使用Go编程语言构建的流行的静态站点生成器。
I want my site to be as dumb as possible, which means less points of failure. A static site satisfies this requirement, and provides many nice advantages as well.
我希望自己的网站尽可能的简洁 ,这意味着更少的故障点。 静态站点可以满足此要求,并且还具有许多不错的优点。
The reason I chose Hugo are:
我选择雨果的原因是:
- generates plain HTML files, which make it faster than having to process every request server-side 生成纯HTML文件,这使其比必须处理服务器端的每个请求更快
- a static site is more flexible in terms of deployment and hosting 静态站点在部署和托管方面更加灵活
-
it’s really fast, my local live reloading is instant and I don’t have to wait 10 seconds to recompile (
not every platform can do this on my 2010 Macbook Promy 2018 MacBook Air is faster but I still welcome speed)速度非常快,我的本地实时重载是即时的,无需等待10秒钟即可重新编译(
并非每个平台都能在我的2010 Macbook Pro上做到这一点我的2018 MacBook Air更快,但我仍然欢迎速度) - I like Go 我喜欢去
- it’s simple 这很简单
主题 (The theme)
I originally used the Ghostwriter theme, slightly optimized and tweaked to serve my needs. I changed it so much over time that it’s now unrecognizable, but it was a great way to start.
我最初使用Ghostwriter主题 ,对其进行了稍微优化和调整以满足我的需求。 随着时间的推移,我对其进行了很大的更改,以至于现在无法识别,但这是一个很好的起点。
我在哪里托管网站 (Where do I host the site)
I use Netlify. Here I describe how I automatically deploy my posts and schedule them.
我使用Netlify 。 在这里,我描述了如何自动部署我的帖子并安排它们 。
Don’t exclusively write on Medium or on other platforms. Find out why you should focus on your own platform.
不要只在Medium或其他平台上写作。 找出为什么您应该专注于自己的平台 。
帖子 (The posts)
I write the posts using Markdown in Bear - awesome app. Markdown is a great format because it’s very portable - I could move to any other static site generator in a minute if I want, since using Markdown there’s no lock-in, but I’m very happy with Hugo.
我写使用降价的职位熊 -真棒应用程序。 Markdown是一种很好的格式,因为它非常易于移植-如果需要的话,我可以在一分钟内移至任何其他静态站点生成器,因为使用Markdown并没有锁定,但是我对Hugo感到非常满意。
我该如何推广这些职位 (What do I do to promote the posts)
I post them on Twitter and add them in the email newsletter which I send every week. That’s basically it. I used to post articles on Hacker News or Reddit, but it mostly did nothing all the times I tried, so I stopped doing it. I’d still recommend doing it when starting out.
我将它们发布在Twitter上,并将它们添加到我每周发送的电子邮件通讯中。 基本上就是这样。 我曾经在Hacker News或Reddit上发表文章,但是在我尝试的所有时间它几乎什么都没做,所以我停止这样做。 我仍然建议刚开始时这样做。
Posts are automatically picked up by Google. Find out my SEO tips.
Google会自动提取帖子。 找出我的SEO技巧 。
我发布文章的工作流程 (My workflow for posting an article)
When I write a blog post, I set the published date in the future.
当我写博客文章时,我设置了将来的发布日期。
I have a bad memory, so I write down everything. I have a list of scheduled posts in the Apple Notes app and I try to keep more than two weeks of content in front of me, so I don’t have anxiety about not knowing what I am going to publish or write about. This is key: there is nothing that can get in the way of daily publishing.
我记性不好,所以我记下了一切。 我在Apple Notes应用程序中有一个预定的帖子列表,我试图将两个多星期的内容摆在我面前,所以我不担心自己不知道要发表或写些什么。 这很关键:没有什么可以阻碍日常发布。
I push all my content to a private GitHub repository, which is synchronized to Netlify thanks to their Git integration.
我将所有内容推送到私有GitHub存储库,由于其Git集成,该存储库已与Netlify同步。
Every time I push to GitHub, Netlify deploys an updated copy of the site.
每次我推送到GitHub时,Netlify都会部署该网站的更新副本。
I just run an IFTTT webhook every morning at 08:00 CET to automatically trigger a new deploy on Netlify, which will publish the blog post of the day (I date every post at 7:00 AM, just to be sure).
我只是每天早上08:00 CET运行一次IFTTT Webhook,以自动触发Netlify上的新部署,该部署将发布当天的博客文章(我确定每个帖子的发布时间为7:00 AM)。
I might be sleeping or walking the dog at 8 AM, yet the post is published.
我可能在上午8点睡觉或walking狗,但该帖子已发表。
It’s nice to have this piece of the infrastructure out of my mind. I just know a post is going to be published.
让我忘掉这部分基础架构真是太好了。 我只知道一个帖子即将发布。
It’s also going to be posted on Twitter automatically, thanks to another IFTTT applet which is linked to my RSS feed.
由于另一个链接到我的RSS feed的IFTTT小程序,它也将自动发布在Twitter上。
发布图片 (Post images)
I make sure all the post images are optimized using ImageOptim, to avoid useless bandwidth usage and a faster page speed.
我确保使用ImageOptim对所有发布图像进行优化,以避免无用的带宽使用和更快的页面速度。
Sometimes I use an app to generate a banner image for the post, which is also used in the Twitter card.
有时我会使用一个应用程序为帖子生成横幅图像,该图像也用在Twitter卡中。
I used to create an ASCII-text image, using TAAG.
我曾经使用TAAG创建ASCII文本图像。
I sometimes draw images using the iPad and an Apple Pencil. I use the Sketches app, it’s great. I am not gifted at all for drawing, I just like doing something kind of funny. It’s my own blog, so I can publish crappy artwork if I like.
有时我会使用iPad和Apple Pencil绘制图像。 我使用Sketches应用程序 ,很棒。 我根本没有绘画天赋,我只是喜欢做一些有趣的事情。 这是我自己的博客,因此我可以根据需要发布脚的艺术品。
2019 update: I rarely make banner images now
2019更新:我现在很少制作横幅图像
2020 update: I automated the OG images generation for my posts
2020年更新:我为帖子自动生成了OG图片
时事通讯 (The newsletter)
I have one main newsletter. I send an email every week, with the list of the posts I wrote during the week, plus any new resource I create.
我有一个主要通讯。 我每周发送一封电子邮件,其中包含一周内我写的帖子列表以及我创建的任何新资源。
I used ConvertKit in the past. It’s great tool to start. Now I use a self-hosted solution called Sendy.
我过去使用过ConvertKit。 这是很好的启动工具。 现在,我使用一个名为Sendy的自托管解决方案。
Find out why you should create an email list.
了解为什么要创建电子邮件列表 。
推特 (Twitter)
Twitter is a great platform for me. I have more than 9000 followers, which is not huge, but it’s not a small number.
Twitter对我来说是一个不错的平台。 我有9000多个关注者,虽然数量不多,但数量不小。
Even though I joined Twitter in 2007, I never really used it effectively. I only started a few months ago to get any kind of interaction with the people out there ????
即使我于2007年加入Twitter,但我从未真正有效地使用过它。 我才几个月前才开始与那里的人们进行任何形式的互动????
I have a script that runs on Glitch and it’s triggered 2 times a day by IFTTT. I explain it here. Basically I have a list of posts on Airtable that I posted in the past and I want to repurpose on Twitter.
我有一个在Glitch上运行的脚本,该脚本每天由IFTTT触发2次。 我在这里解释。 基本上,我有过去在Airtable上发布的帖子列表,我想在Twitter上重新利用。
It’s sad to write a post, share it once and never post it again, but doing it manually it’s 1) tedious 2) not something I can do consistently 3) had to track which posts I shared already.
这是可悲写一个帖子,分享一次,永远不会再张贴,但这样做手工是1)乏味2)不是我能做到始终如一3)有跟踪我分享哪些帖子了。
It’s a job perfect for a machine, that posts them while I am sleeping, 2 times every day.
对于机器而言,这是一项完美的工作,它可以在我睡觉时将它们发布到我的手上,每天2次。
图书 (Books)
I wrote 12 free ebooks. I use GitBook to write them, the original self-hosted GitBook project available here, not the thing that you find on gitbook.com.
我写了12本免费电子书。 我使用GitBook来编写它们, 这里提供了原始的自托管GitBook项目,而不是您在gitbook.com上找到的东西。
As for my blog posts, I write the drafts using Bear and when I think they are ready I export to a folder and I create an index. That’s basically it. I made a template for the books which I reuse, and I’m pretty happy about it.
至于我的博客文章,我使用Bear编写草稿,当我认为草稿准备就绪时,可以将其导出到文件夹中并创建索引。 基本上就是这样。 我为重复使用的书制作了一个模板,对此我感到非常高兴。
而已! (That’s it!)
I might update this post in the future, right now this is all I use and do to run this blog.
我可能会在将来更新此帖子,现在这是我用来运行此博客的全部操作。
运行堆栈