<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hugo on Bas-Man's Musings</title><link>https://bas-man.dev/post/hugo/</link><description>Recent content in Hugo on Bas-Man's Musings</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 06 Mar 2026 15:30:00 +0900</lastBuildDate><atom:link href="https://bas-man.dev/post/hugo/index.xml" rel="self" type="application/rss+xml"/><item><title>Build a robots.txt file from a data file</title><link>https://bas-man.dev/post/hugo/build-robots-txt-from-data-file/</link><pubDate>Fri, 06 Mar 2026 15:30:00 +0900</pubDate><guid>https://bas-man.dev/post/hugo/build-robots-txt-from-data-file/</guid><description>&lt;p&gt;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.&lt;/p&gt;</description></item><item><title>Moving Site from GitHub</title><link>https://bas-man.dev/post/hugo/moving-site-from-github.io/</link><pubDate>Tue, 29 Jun 2021 13:50:00 +0900</pubDate><guid>https://bas-man.dev/post/hugo/moving-site-from-github.io/</guid><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;So yesterday I decided to move my site from &lt;strong&gt;github.io&lt;/strong&gt; 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 &lt;strong&gt;github&lt;/strong&gt; to the new domain.&lt;!---more--&gt;&lt;/p&gt;
&lt;h2 id="the-goal"&gt;The Goal&lt;/h2&gt;
&lt;p&gt;My goal was to leave my old site up on &lt;strong&gt;GitHub&lt;/strong&gt; for a few weeks to give &lt;strong&gt;Google&lt;/strong&gt; 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.&lt;/p&gt;</description></item><item><title>Hugo Custom Info Boxes</title><link>https://bas-man.dev/post/hugo/custom-infobox/</link><pubDate>Sat, 05 Jun 2021 22:30:00 +0900</pubDate><guid>https://bas-man.dev/post/hugo/custom-infobox/</guid><description>&lt;p&gt;The other day I got my regular summary from &lt;strong&gt;GoHugo&lt;/strong&gt; a &lt;a href="https://discourse.gohugo.io"&gt;discourse&lt;/a&gt; site where I am a member. This lead me to an interesting blog, which then lead me to an article on how to add &lt;em&gt;custom info boxes&lt;/em&gt; to your site if it is not provided by your theme.&lt;/p&gt;</description></item><item><title>Add a New Social to Beautifulhugo</title><link>https://bas-man.dev/post/hugo/add-new-social-beautifulhugo/</link><pubDate>Sun, 25 Apr 2021 23:00:00 +0900</pubDate><guid>https://bas-man.dev/post/hugo/add-new-social-beautifulhugo/</guid><description>&lt;p&gt;Fairly recently I changed my theme for my personal blog. I switched to &lt;a href="https://github.com/halogenica/beautifulhugo"&gt;Beautifulhugo&lt;/a&gt;. I find it to be a nice clean theme.&lt;/p&gt;
&lt;p&gt;Beautifulhugo supports a lot of social sites. However, it is also missing some that I like. In particular &lt;a href="https://dev.to"&gt;Dev.to&lt;/a&gt; and &lt;a href="https://flipboard.com"&gt;Flipboard&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I had previously added these to the other theme I was using. So I went about adding them to &lt;strong&gt;Beautifulhugo&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Publish your next Hugo blog post automatically using Github Actions</title><link>https://bas-man.dev/post/hugo/hugo-auto-publish/</link><pubDate>Sat, 08 Aug 2020 08:00:00 +0900</pubDate><guid>https://bas-man.dev/post/hugo/hugo-auto-publish/</guid><description>&lt;h2 id="the-challenge"&gt;The Challenge&lt;/h2&gt;
&lt;p&gt;I wanted to be able to publish a new post that has already been written at a future date, without needing to manually publish the article.&lt;/p&gt;</description></item><item><title>Private Hugo Repo to Public on Github</title><link>https://bas-man.dev/post/hugo/hugo-private-to-public-github/</link><pubDate>Thu, 06 Aug 2020 16:51:00 +0900</pubDate><guid>https://bas-man.dev/post/hugo/hugo-private-to-public-github/</guid><description>&lt;p&gt;I was researching ways of moving to &lt;a href="https://gohugo.io"&gt;Hugo&lt;/a&gt; for my site generator. I looked at a few options and as part of this I came a cross a workflow in github that allows me to store my site in a private repo and then publish the site to a public repo without too much fuss.&lt;/p&gt;</description></item></channel></rss>