A theme for Hugo designed for documentation
Find a file
2017-08-20 23:43:44 +02:00
archetypes feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
i18n feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
images feat: add screenshot and thumbnail images 2016-04-12 02:46:40 +02:00
layouts feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
static feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
.gitignore feat: added .gitignore 2016-03-17 12:03:28 +01:00
LICENSE.md feat: add screenshot and thumbnail images 2016-04-12 02:46:40 +02:00
README.md Add warning: the theme is not working with Hugo version 0.22+ 2017-07-22 15:42:28 +02:00
theme.toml Bump min_version 2017-03-27 22:14:37 +03:00

Hugo Learn Theme

This repository contains a theme for Hugo, based on great Grav Learn Theme.

Visit the theme documentation to see what is going on. It is actually built with this theme.

Installation

Navigate to your themes folder in your Hugo site and use the following commands:

$ cd themes
$ git clone https://github.com/matcornic/hugo-theme-learn.git

Check that your Hugo version is between 0.19 and 0.21 with hugo version.

From 0.22, Hugo team introduced a long awaited feature: nested sections. As Hugo team deleted some functions on which this theme was based on, this theme fails with current Hugo version. A complete rewrite is needed and is currently under construction. Be aware that this new version will possibly make breaking changes.

Until the v2 is not out yet, feel free to check Docdock, a great fork of hugo-learn-theme by @vjeantet that works and embraces latest features of Hugo!

Overview

Usage

Main functionalities

  • Handle two levels of documentation
  • Tip/Note/Info and Warning boxes
  • Resize images
  • Preview of original image size
  • Add shadow or border on images
  • Automatic table of contents
  • Create buttons (typically used to provide a link to a demo)
  • Search using lunr index
  • Automatic next/prev buttons to navigate through pages

TODO

Troubleshooting

Changes have been made for automatically creating previous and next arrows. These changes restructured the theme and you might have compatibility problems when updating to the latest version of the theme. Please read PR#36 to update your documentation with latest guidelines.

If you don't want to update your documentation, use the git tag 1.0.0

cd themes/hugo-theme-learn
git checkout tags/1.0.0