Sören Weber 0505b36141
theme: fix flash of non-default variant, part I #757
implements the first part, working for configured variants;

for that, loading of stylesheets was overhauled by now
merging all configured variants into one big stylesheet for
each output format and loading this instead of one stylesheet
per configured variant;

previously @media print styles were applied on top of @media screen
styles; this is now strictly isolated, which doesn't require styles
like neon to revert styles for print anymore;

this change was also used to implement the minify parameter, to shrink
those generated stylesheets, making them shrink to 66% of their
unminified size for the exampleSite;

the theme switcher functionality is now completely independend of
variant.js; the switch is now handled by in-page javascript which
avoids waiting for external scripts to load, so switching can happen
as early as possible;

switching of themes is now implemented by just setting a data attribute
to the html element, were previously a complex mechanism of dynamically
loading of variant CSS files was implemented;

the call for variant.js was removed in this changeset, making the
generator broken and useless; this will be fixed with the next patch;
2024-12-06 07:38:05 +01:00
2024-10-14 20:18:45 +02:00
2024-10-11 16:46:55 +02:00
2024-12-05 22:27:01 +03:30
2024-11-15 23:37:56 +01:00
2024-10-25 06:34:18 +00:00
2022-12-14 22:17:43 +01:00
2021-08-22 13:30:05 +02:00
2024-12-05 22:36:47 +03:30

Hugo Relearn Theme

A theme for Hugo designed for documentation.

★ What's new in the latest version ★

Image of the Relearn theme in light and dark mode on phone, tablet and desktop

Overview

The Relearn theme is an enhanced fork of the popular Learn theme. It aims to address long-standing issues and incorporate the latest Hugo features while trying to maintain compatibility with its predecessor.

Key Features

Getting Started

For a comprehensive guide on the theme's capabilities, please refer to the official documentation.

Updates and Changes

Visit the What's New page for feature highlights or the detailed changelog for a complete list of updates.

Contributing

We welcome contributions for bug fixes and new features. Please see the contribution guidelines before getting started.

Licensing

The Relearn theme is distributed under the MIT License.

Credits

This theme builds upon the work of many contributors.

Description
A theme for Hugo designed for documentation
Readme MIT 857 MiB
Languages
JavaScript 97.7%
CSS 1.4%
HTML 0.9%