Move To Hugo With Netlify

I’ve moved this blog from Gatsby.js to Hugo. My build times have gone down from more than 7 minutes to a few seconds! The slow build times with Gatsby have been an ongoing concern for me. I’ve slowly been creeping towards Netlify’s free 300-minutes-build-time cap. Hugo runs a magnitude faster, and it integrates well with Netlify. Hugo is a static site generator built with Golang. The project’s selling points are incredible speed, ease of use, and the ability to configure tons of settings.
Read more →

Gatsby Builds Take A Long Time

When I started the blog, I wanted a quick solution that simply works. That’s why I’m using a Gatsby Starter. I didn’t want to fiddle around with my blog too much. I chose Gatsby because it’s build with JavaScript and React.js. There are other candidates like Hugo, but I’m not familiar with the programming language it’s built with (Golang). Gatsby offers great features out of the box, and it was easy to deploy to Netlify.
Read more →

Tweet Tweet

Rich Winter kindly pointed out an error in one of my posts. He also suggested adding my Twitter handle to the blog. Thus, I’ve included a new button to the index page. The button leads to my Twitter account. It’s only visible on the index page, not on the individual blog post pages. My blog uses the Gatsby blog template by LekoArts. I don’t want to deviate from the design too much as I like the minimalist style.
Read more →

error gatsby-mdx: renderMdxBody was unavailable when rendering html.

I like Gatsby.js - it offers a ton of functionality out of the box and embraces the React ecosystem. I watched the excellent Frontend Masters course Introduction to Gatsby. I’m blown away by the possibilities Gatsby offers. But the devil is in the details. A while ago, I added an RSS feed to my blog. Unfortunately, using the official gatsby-plugin-feed is not as easy as it sounds. The culprit is mdx again.
Read more →

Add RSS Feed to Gatsby

Today I added a RSS feed to this blog. I’m not happy with it. This blog runs on Gatsby and uses mdx instead of Markdown. Adding a new plugin, the gatsby-plugin-feed, was easy. But it doesn’t work with mdx. Although the RSS feed gets rendered, I can’t add a title or description to the feed. It looks like it’s a bug. Here’s how the config looks: plugins: [ { resolve: gatsby-plugin-feed, options: { query: { site { siteMetadata { siteTitle siteDescription siteUrl site_url: siteUrl } } }, feeds: [ { serialize: ({ query: { site, allMdx } }) => allMdx.
Read more →