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
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/
Initial revision of thumbnail visibility control allows you to turn off
thumbnails for list-like or single pages globally and per page.
Fixes#160Closes#175