Blog
-
[Hugo] Sitemap Index with Last Modified Dates
In Hugo (and most modern static site generators), the value of .Lastmod (which you use for <lastmod> in your sitemap) is determined as follows, in this priority order: So, in the context…
-
What Using ghost.org Taught Me About Staying True to Myself as a Creator
Tried out ghost.org. It’s definitely faster than WordPress, this was surprising. Plus, you don’t have to write in Markdown like hugo, so it’s super easy to create articles. Newsletters can…
-
Exporting My Blog from WordPress to Hugo: How I Made It Work
Exporting articles from WordPress and importing them to Hugo was harder than I thought. Some tools didn’t work, so I had to find my own way. If you’re thinking about…
-
Batch Renaming image file in .md file to just contain the filename
Go to root folder of your Hugo project. Use below code on terminal. Make sure you back up your content folder first. For other folders (custom post type) within content…
-
How I Converted My Hugo Blog Images to WebP (Without Changing Size or Aspect Ratio)
Converting your images to WebP can make your Hugo website load faster without sacrificing quality. Here’s how I achieved it, while ensuring that the images in my assets/images folder kept…
-
How to Display All Menu Items in BeautifulHugo’s Mobile Hamburger Menu Without Scrolling
Introduction: If you use the BeautifulHugo theme for your Hugo static website, you might have noticed that when your main menu contains many items (e.g., 11 or more), the mobile…
-
How to Create Human-Readable, Language-Aware, and Custom Post-type Sitemaps in Hugo
If you run a multilingual Hugo site with custom content types, you likely want flexible sitemaps: Below is a practical, reusable solution. 1. Add XSL Stylesheets for Human-Readable Sitemaps Browsers…
-
How I Added a Tag Page to My Hugo Site
Recently, I decided to add a dedicated tag page to my Hugo-powered blog. This guide outlines each step I took. 1. Creating terms.html in layouts/taxonomy First, I wanted a template…
-
How to Translate Hugo Tags Using the i18n Folder (Without Modifying Front Matter)
When building a multilingual Hugo site, translating taxonomy terms like tags adds a polished touch for your readers. A common problem: you want to show tags in the visitor’s language…
-
How to Add Related Articles in Hugo
Adding related content is a great way to boost reader engagement on your Hugo-powered site. With Hugo’s built-in related content engine, you can show contextually relevant posts with minimal setup.…
-
How to Add Matomo Analytics to a Hugo Site
Self-hosting Matomo gives you privacy-first, powerful analytics. Below are the complete steps, from installation to integrating the tracker into your Hugo static site. 1. Download Matomo On-Premise 2. Unzip and Upload Matomo…
-
Niche Blogs Are for Success. Personal Blogs Are for Happiness.
Have you ever wanted to start your own blog? You might notice that there are two main kinds. The first type is a “niche blog.” The second type is a…