This article has been published 4 years ago. If you're into internet archeology, read it — but at your own risk. Honza doesn't have to necessarily agree with the content by now.
This blog hasn't seen a new article for almost a year and half now. It's not dead though - at least not on purpose. I still think about article ideas, and about finding time to sit down and publish new texts here. It's just that lately I was quite busy (getting married, leaving my job…) and blogging wasn't my priority. I'd like to get back to it now, with a few things changed.
So old that it's cool again
Sure, I know it's 2020 in a few hours. I know blogging is way past its original charm and in 2020 I should definitely go with a YouTube channel, SoundCloud podcast, or at least turn this into a Substack newsletter. Well, thanks but no. This blog has existed since 2007 and it's going to go on as it is - my personal, independent platform for sharing my thoughts in a written form. First, I like writing, and second, I like the fact that this site is just a boring text inside a boring HTML file, hosted on my own boring domain. Because that's how it survived 10+ years. It's a relict of the oldschool web, where sites were made for fun and not for profit.
I wanted to embrace this with my latest changes. I removed all share buttons, Twitter's scripts, Google's fonts. I removed Disqus comments. If you wish to react to my articles, use social network of your choice - it is their job to fascilitate discussions. I'm keeping backup of the original comments made here under the old articles and maybe one day I'll parse the backup and display the comments statically under the texts, but it's not on my list right now. Also, I'm still keeping Google Analytics, but perhaps in the future that will go as well.
I got inspired by the Manifesto for Preserving Content on the Web. I made the design simpler. I removed a lot of complexity which got here over the years. Not so long ago I built a new homepage at honzajavorek.cz, with a refreshed design and updated info, but I made it using a separate app written in Flask and deployed using Flask-Frozen, while the rest of the site was still using Pelican. Because I wanted to be cool, I made the homepage app very "automagic" and modern, which manifested mainly in using SCSS for the design or Gravatar for my photo instead of a simple JPEG file.
Also, the blog wasn't using just Pelican. In the past I thought it's smart to create a package called danube-delta with shared configuration, theme, and plugins. This has been used on my site as well as on two other blogs, including the blog.python.cz, effectively turning them all into a distributed maintenance nightmare. Also the deployment was a duct-taped piece of crap, which included custom scripts, CircleCI night builds, GitHub Pages, and many more pieces making the whole thing complex in the first place. The package was also trying to "automagically" create thumbnails, or make many other implicit guesses.
I migrated the site to use Pelican exclusively. I replaced
pipenv with good old
The danube-delta package needs to go. In a way, it was an attempt to make Pelican more user-friendly for non-developers, but I think if that's a requirement, Pelican shouldn't be used. We should use something else for blog.python.cz, something focused on users in the first place, and then perhaps just automatically backup the site as static HTML or as Markdown files.
Using GitHub Actions and ZEIT Now
I removed CircleCI in favor of built-in GitHub Actions, but I replaced GitHub Pages with ZEIT Now, my current favorite place for hosting static pages. It gives me CDN, HTTPS, automatic deploys of my GitHub branches for live previews, and many more, including dynamic lambdas if I ever need them. Pelican isn't supported directly, so I needed to write custom
now.sh files (see the code here), but it still feels somewhat more straightforward than deploying to GitHub Pages with the
gh-pages branch and the
gh-import utility, which was the previous setup here. Since ZEIT Now requires me to use their DNS, I'm using ImprovMX for e-mail forwarding now instead of WEDOS, my domain name registrar.
Yeah, dropping the original name makes me sentimental too, but that's life. I can't really translate the name literally (misguided Maple Leafs fans would start hitting my articles) and I was lazy to come up with a new cool name. There's no need for a separate brand name. From now on, this is just "my blog". HJ's blog. One era ends, another begins.