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!
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
git checkout tags/1.0.0