jakewies / hugo-theme-codex

A minimal blog theme for Hugo 🍜
https://themes.gohugo.io/themes/hugo-theme-codex/
MIT License
334 stars 188 forks source link

layouts: update baseof.html to use FullSuffix.Suffix instead #170

Closed jwangsadinata closed 3 years ago

jwangsadinata commented 3 years ago

As per Hugo v0.82.0 onwards, the Suffix and FullSuffix on media.Type is deprecated (see this [commit]) to make it comparable. Therefore, running hugo commands will result in an error.

This commit fixes the issue according to the new media.Type struct definitions.

[commit]: https://github.com/gohugoio/hugo/commit/ba1d0051b44fdd242b20899e195e37ab26501516

jakewies commented 3 years ago

Duplicate of https://github.com/jakewies/hugo-theme-codex/pull/166

Thanks for pointing this one out @jwangsadinata I'll make sure to credit you over in the other PR (where a larger conversation is taking place) since you were the first to find this one.