Build a robots.txt file from a data file

Recently, I was reviewing how I generate my blog. I have noticed that my site seems to get a lot of bot traffic. I would rather not see this traffic so I thought I should investigate how I might limit them to reduce the amount of traffic. So, a bit of searching and thinking and this is what I have decided for now.

[Read More]
Categories: hugo automation  Tags: robots.txt data 

Moving Site from GitHub

Generate the redirects for all pages

Hi All,

So yesterday I decided to move my site from github.io to one of my personal domains. I am not sure why I decided this. I mean Github provides a great free service. And I had lots of automation in place. In this article I will just cover how i went about updating all pages with redirects from github to the new domain.

The Goal

My goal was to leave my old site up on GitHub for a few weeks to give Google some time to update its indexing. With all old pages being able to redirect to their new counterparts. This requires that I have redirects in place for each page. I will then remove the github site repo.

[Read More]
Categories: general hugo git  Tags: bash script shell github migration 

Hugo Custom Info Boxes

This post is outdated

I have updated my theme to the latest version of beautifulhugo. This new version supports boxing using callout

The other day I got my regular summary from GoHugo a discourse site where I am a member. This lead me to an interesting blog, which then lead me to an article on how to add custom info boxes to your site if it is not provided by your theme.

[Read More]
Categories: Blog  Tags: Hugo beautifulhugo Custom InfoBox 

Add a New Social to Beautifulhugo

Fairly recently I changed my theme for my personal blog. I switched to Beautifulhugo. I find it to be a nice clean theme.

Beautifulhugo supports a lot of social sites. However, it is also missing some that I like. In particular Dev.to and Flipboard.

I had previously added these to the other theme I was using. So I went about adding them to Beautifulhugo.

[Read More]
Categories: Hugo  Tags: social Beautifulhugo dev.to