Having a search function is very useful when there are more thatn just a couple of posts on a website. I had my heart set on writing my site with Hugo but I really wanted to have a search function. As it turns out this isn’t the easiest thing to do. This post assumes you have the same directory structure and files as the ‘Hugo Build Pipeline’ post Search Page First off, a search page is required to actually perform a search function is required.
Hugo is a great static site generator and when you pair it with Git and a CI/CD pipeline you can create an automated deployment pipeline to update your live site whenever you add new content. The pipeline here uses Drone as the automated build platform and Gitea as the Git server. These can be changed for whichever platform is required although the syntax may change the general steps should be the same.