As of Hugo 0.120.0, `.Site.IsServer` is deprecated, and starting with Hugo 0.132.0, it causes a build error. Unfortunately, this is a breaking upstream change that we can't "fix" on our end. As a result, we had to raise the minimum supported version to v0.54.0 and implement another workaround to ensure compatibility with older versions, not just Hugo v0.120.0 and all subsequent versions.
Fix#369
It looks like the issues with Hugo 0.123.* won't affect Mainroad directly, but it is better to monitor this release during theme development and code testing.
The above issue is not the only one; it is a start to digging deeper.
Optimize all generic SVG files
All of our generic SVG files (6) have been optimized. In some cases it was necessary to slightly change the shape of the icons. The main goal was to reduce the maximum size of generic SVG below 300 bytes.
Optimized files should retain their original visuals. Reshaped + optimized files contain only minor shape changes. All in all, it's hard to tell the difference without a direct comparison, or even with one.
Slightly improve search widget in several areas, mostly look and feel. Nothing fancy, just light touches here and there.
* СSS:
* Increase font size (11px → 13px)
* Use pixels for paddings
* Always outline search input field on focus
* i18n: use capitalized notation for search text
* Remove empty label
As of Hugo 0.120.0, `.Site.disqusShortname` and `.Site.googleAnalytics` are deprecated. Backward
compatible change, new notation supported from Hugo v0.41. See
4ddcf52ccc
As of IE11, "document modes are deprecated and should no longer be used."
Background:
This meta tag is only relevant to the Internet Explorer browser family. IE has
different modes for displaying web pages, allowing you to view HTML pages using
previous versions of rendering rules. `IE=edge` tells Internet Explorer to use
the latest available document mode. However, it is a default mode (IE11) for the
HTML5 doctype declaration.
The internal Hugo template `google_analytics_async.html` no longer works because Google has removed
the version of Google Analytics it uses. The regular internal template (google_analytics.html)
already handles Google Analytics 4 asynchronously.
* Use time.Format function (via `dateFormat` alias) to format post meta dates. It allows dates to be localized easily (with weekdays and months in the current language). Hugo v0.87.0 or later is required.
* Use old default format to preserve compatibility with older versions of Hugo
References:
- https://gohugo.io/functions/dateformat/
- https://gohugo.io/news/0.87.0-relnotes/