Switching From Hugo
Disclaimer
Golda was hard-forked from Hugo version 0.151.2. Thus, there are some changes made in Hugo that do not apply to Golda.
- There is no Deploy Edition for Golda.
.Site.LanguageCodeis used instead of.Site.Language.Locale.- Functions and methods such as page.Render are not supported due to being released later.
- Hugo themes may or may not work depending on which versions of Hugo they were built against. We recommend using our own theme library instead.
And more…
It is highly recommended to test your site locally before switching it from Hugo to Golda, and we cannot guarantee compatibility past Hugo version 0.151.2!
Local
- Install Golda.
- Run
goldain-place ofhugo(e.g.golda server). - Check logs in terminal for potential incompatibilities (see Disclaimer) and resolve them.
- Enjoy your Golda site!
Forgejo Actions
The following details how to update an existing Forgejo Actions workflow (such as deploying to git-pages) to use Golda.
- Change the value of
container.imagetocodeberg.org/personaltechhelp/golda:latestor to a specific version. - Replace the
hugocommand withgolda. - Run the updated workflow workflow.