A theme for Hugo designed for documentation
Find a file
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
.githooks build: make githooks reusable 2024-10-14 20:18:45 +02:00
.github built: fix superfluous zero patch version 2024-10-13 18:57:33 +02:00
.vscode theme: changed prettier settings #947 2024-11-27 19:23:52 +01:00
archetypes docs: finish chapter 1 #567 2024-10-11 16:46:55 +02:00
assets theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
content/_relearn search: search page not generated with renderer.unsafe=false #929 2024-10-15 15:43:04 +02:00
exampleSite theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
i18n Create fa.toml 2024-12-05 22:27:01 +03:30
images build: be a nice Hugo citizen in regards to screenshots 2024-09-12 19:48:20 +02:00
layouts theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
static theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
vscode-frontmatter theme: apply Prettier config #947 2024-11-15 23:38:25 +01:00
.editorconfig theme: changed prettier settings #947 2024-11-27 19:23:52 +01:00
.gitignore theme: add Prettier config #947 2024-11-15 23:37:56 +01:00
.grenrc.js theme: changed prettier settings #947 2024-11-27 19:23:52 +01:00
.imgbotconfig theme: apply Prettier config #947 2024-11-15 23:38:25 +01:00
.issuetracker repo: add issuetracker configuration 2022-03-03 23:49:28 +01:00
.prettierignore theme: format vscode files #947 2024-11-18 14:07:11 +01:00
.prettierrc.json theme: changed prettier settings #947 2024-11-27 19:23:52 +01:00
CHANGELOG.md Ship tag 7.1.1 2024-10-25 06:34:18 +00:00
go.mod theme: make it a Hugo module #417 2022-12-14 22:17:43 +01:00
hugo.toml docs: chapter 3 content-complete #567 2024-10-12 18:38:04 +02:00
LICENSE theme: reorder license #40 2021-08-22 13:30:05 +02:00
README.md Update README.md 2024-12-05 22:36:47 +03:30
theme.toml menu: support nested Hugo menus #423 2024-10-22 19:35:28 +02:00

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.