Version 5.11
See the changelog of this version for a detailed list of changes.-
0.126.0 Minimum required Hugo version
-
Breaking Change requiring action after upgrade
-
Change Change of behavior, may require action
-
New New behavior, often introducing new options
5.11.0 (2023-02-07)
Change
-
Change The theme removed the popular jQuery library from its distribution.
In case you made changes to the theme that are depending on this library you can place a copy of jQuery into your
static/js
directory and load it from your ownlayouts/partials/custom-header.html
like this:<script src="{{"js/jquery.min.js"| relURL}}" defer></script>
-
Change Mermaid diagrams can now be configured for pan and zoom on site-, page-level or individually for each graph.
The default setting of
on
, in effect since 1.1.0, changed back tooff
as there was interference with scrolling on mobile and big pages. -
Change The theme is now capable to visually adapt to your OS’s light/dark mode setting.
This is also the new default setting if you haven’t configured
themeVariant
in yourhugo.toml
.Additionally you can configure the variants to be taken for light/dark mode with the new
themeVariantAuto
parameter.This is not supported for Internet Explorer 11, which still displays in the
relearn-light
variant. -
Change The JavaScript code for handling image lightboxes (provided by Featherlight) was replaced by a CSS-only solution.
This also changed the lightbox effects parameter from
featherlight=false
tolightbox=false
. Nevertheless you don’t need to change anything as the old name will be used as a fallback. -
Change In the effort to comply with WCAG standards, the implementation of the
expand
shortcode was changed. While Internet Explorer 11 has issues in displaying it, the functionality still works.
New
-
New Translation into Czech. This language is not supported for search.
-
New GitHub releases are also now tagged for the main version (eg.
1.2.x
), major version (eg.1.x
) and the latest (justx
) release making it easier for you to pin the theme to a certain version.