I noticed the other day that the search function on this blog had somehow been broken. I’m not sure how as I’ve not changed anything recently in the layout or functionality. In any event, it wasn’t working and I wanted to fix it.
After a quick look at the harbor theme README.md indicated that I needed to have a search.md file in the content directory. I didn’t have it so I created the very simple file and added it. This seemed to fix the issue when serving from localhost using hugo serve
. However, after I pushed the change to the live site, it was still broken.
Very puzzling. After a little bit, I saw that the theme had been updated since I had applied it. One of the commits was called ‘fix search’ so I thought it might be time to update the theme.
That should be straightforward. Just run git submodule update --remote
, commit the changes and push the results. Yep. Here is the set of commands I did to get it going:
git submodule update --remote
git add harbor
git status
git commit -m 'theme update'