More Premium Hugo Themes Premium Hugo Themes

Hugo Theme Relearn

A theme for Hugo designed for documentation

Hugo Theme Relearn

A theme for Hugo designed for documentation

Author Avatar Theme by mcshelby
Github Stars Github Stars: 521
Last Commit Last Commit: Apr 6, 2025 -
First Commit Created: Apr 29, 2023 -
default image

Overview:

The Hugo Relearn Theme is a theme designed for documentation purposes. It is a fork of the original Learn theme, with the aim of fixing bugs and adapting to the latest features of Hugo. The theme offers a wide range of features, including a responsive design for mobile usage, support for offline usage, compatibility with VSCode Front Matter extension for on-premise CMS capabilities, support for Internet Explorer 11, configurable theming and visuals, and automatic switching between light and dark variants based on the user’s OS settings. It also provides support for multiple languages, search functionality, and additional markdown features such as GFM and image styling. The theme is highly customizable and offers various tools for displaying files, creating diagrams, and including other elements in the documentation.

Features:

  • Responsive design for mobile usage
  • Usable offline, no external dependencies
  • Support for the VSCode Front Matter extension for on-premise CMS capabilities
  • Configurable theming and visuals
  • Automatic switch for light/dark variant dependend on your OS settings
  • Predefined light, dark and color variants
  • User selectable variants
  • Configurable syntax highlighting
  • Print whole chapters or even the complete site
  • Site search
  • Taxonomy support
  • Unlimited nested menu dependend on your site structure
  • Configurable shortcut links
  • Multi language support
  • Full support for languages written right to left
  • Additional Markdown features such as support for GFM and image styling
  • Shortcodes for various elements such as files, marker badges, buttons, etc.
  • Support for math and chemical formulae using MathJax
  • Mermaid diagrams for flowcharts, sequences, gantts, pie, etc.
  • OpenAPI specifications using Swagger UI
  • Single tabbed panels and multiple tabbed panels

Installation:

To install and use the Hugo Relearn Theme, follow these steps:

  1. Make sure you have Hugo installed on your system. If not, you can download and install it from the official Hugo website.
  2. Create a new Hugo site or navigate to your existing Hugo site’s directory.
  3. Inside your Hugo site’s directory, run the following command to add the Relearn theme as a submodule:
git submodule add https://github.com/Author/Relearn-theme.git themes/relearn
  1. Once the submodule is added, open your site’s config.toml file and set the theme variable to "relearn":
theme = "relearn"
  1. Customize the theme’s settings by modifying the config.toml file. You can refer to the theme’s official documentation for more details on the available configurations.

  2. Build and view your site using the following command:

hugo serve

You should now be able to view your site with the Hugo Relearn Theme applied.

Summary:

The Hugo Relearn Theme is a feature-rich theme designed specifically for documentation purposes. It offers a wide range of features, including responsive design, offline usage, customizable theming, multi-language support, and various additional markdown features. The theme is highly configurable and provides tools for displaying files, creating diagrams, and including other elements in the documentation. With its comprehensive set of features, the Hugo Relearn Theme is a powerful choice for anyone looking to create documentation sites using Hugo.