Make the site compatible with latest Hugo #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tested this with Hugo v0.119.0 and latest at time of writing, v0.139.0. It works with both.
(though I don't know which version is being used for the live site, it needs testing with that too)
This fixes a number of issues in our theme, https://github.com/avianto/hugo-kiera.
I'm doing this here instead of upstream because upstream has not been updated in 5 years. I am also not updating the theme to the "latest" because it's likely to break more than it fixes for us.
I have fixed the following problems we had with the latest Hugo.
Just moved the setting in config.toml.
.Site.DisqusShortName was deprecated and is now removed (https://discourse.gohugo.io/t/error-deprecated-site-disqusshortname-was-deprecated-in-hugo-v0-120-0-and-will-be-removed-in-hugo-0-133-0-use-site-config-services-disqus-shortname-instead/51111)
Use the new name (though we don't enable Disqus anyway).
.Site.GoogleAnalytics was deprecated and is now removed (https://discourse.gohugo.io/t/site-googleanalytics-was-deprecated-in-hugo-v0-120-0-and-will-be-removed-in-hugo-0-134-0/51395)
Use the new name again (another thing we didn't set ayway).
Moved the author settings into params.author in config.toml.
I'm not sure every option still works but all the things I could get to on the site do work still.