Closed mj-watts closed 3 years ago
Thanks @altescape I think we can safely merge this in along with the min_version
update. I appreciate the initiative on this one!
@all-contributors please add @altescape for code
@jakewies
I've put up a pull request to add @altescape! :tada:
As per #166 but with bumped minimum version added as that PR is old but I think this should to be added ASAP as breaking on new Hugo installs.
Problem
On a default install of the theme into a new vanilla Hugo site the build fails with errors:
What's been done
The Hugo 0.82 release moved
MediaType.Suffix
to beMediaType.FirstSuffix.Suffix
. This PR addsFirstSuffix
in hugo-theme-codex/layouts/_default/baseof.htmlAnd also bump min version of Hugo to 0.82 as adding
FirstSuffix
probably breaks builds on older versions of Hugo but at least they'll get a compatibility warning on build:Module "hugo-theme-codex" is not compatible with this Hugo version
.