2021-06-30 14:56:06 +02:00
# Hugo Relearn Theme
2016-03-17 12:05:36 +01:00
2021-07-01 14:35:27 +02:00
A theme for [Hugo ](https://gohugo.io/ ).
2017-08-20 18:20:13 +02:00
2021-07-01 11:01:51 +02:00
[![wercker status ](https://app.wercker.com/status/062e9604da64b79944d87434cb63fa53/s/main "wercker status" )](https://app.wercker.com/project/byKey/062e9604da64b79944d87434cb63fa53)
2018-08-10 11:29:11 +02:00
2021-07-01 16:25:08 +02:00
![Overview ](https://github.com/McShelby/hugo-theme-relearn/raw/main/images/screenshot.png )
2021-07-01 14:35:27 +02:00
2017-08-20 18:20:13 +02:00
## Main features
- Automatic Search
- Multilingual mode
- Unlimited menu levels
- Automatic next/prev buttons to navigate through menu entries
- Image resizing, shadow…
- Attachments files
- List child pages
- Mermaid diagram (flowchart, sequence, gantt)
- Customizable look and feel and themes variants
2021-07-01 14:35:27 +02:00
- Buttons, Tip/Note/Info/Warning boxes, Expand, Tabs
Visit the [documentation ](https://relearn.netlify.app/ ) for a demo.
2016-04-11 00:09:03 +02:00
2016-12-30 22:40:05 +01:00
## Installation
2017-08-20 18:20:13 +02:00
2016-04-12 06:34:40 -04:00
Navigate to your themes folder in your Hugo site and use the following commands:
2017-08-20 18:20:13 +02:00
2019-09-04 22:47:55 +01:00
```shell
cd themes/
2021-06-30 14:56:06 +02:00
git clone https://github.com/McShelby/hugo-theme-relearn.git
2016-04-12 06:34:40 -04:00
```
2017-08-20 18:20:13 +02:00
Check that your Hugo version is minimum `0.25` with `hugo version` .
2017-04-08 10:30:09 +02:00
2016-12-30 22:40:05 +01:00
## Usage
2021-07-01 08:17:24 +02:00
- [Visit the documentation ](https://relearn.netlify.app/ )
2017-08-21 01:29:54 +02:00
2021-07-01 14:35:27 +02:00
## License
2017-08-21 01:29:54 +02:00
2021-07-01 14:35:27 +02:00
[MIT licensed. ](https://en.wikipedia.org/wiki/MIT_License )
2018-07-24 07:45:37 -07:00
2021-07-01 14:35:27 +02:00
## Credits
2019-09-04 22:47:55 +01:00
2021-07-01 14:57:26 +02:00
Many thanks to [everyone who has contributed ](https://github.com/McShelby/hugo-theme-relearn/graphs/contributors ) to this project.
Special thanks to [@matcornic ](https://github.com/matcornic ) for his work on [learn ](https://github.com/matcornic/hugo-theme-learn ) and [@vjeantet ](https://github.com/vjeantet ) for his work on [docdock ](https://github.com/vjeantet/hugo-theme-docdock ), which hugo-theme-relearn is based on.
2019-09-04 22:47:55 +01:00
## Releasing
2021-07-01 20:26:24 +02:00
We are using [gren ](https://github.com/github-tools/github-release-notes ) to generate the changelog and releasenotes automatically.
2019-09-04 22:47:55 +01:00
2021-07-01 20:26:24 +02:00
In the latest gren release (0.17.3) is a bug in the date generation. Therefore we are using a historical but correct version directly thru `npx` .
Once:
- Generate API Token as described in grens [README.md ](https://github.com/github-tools/github-release-notes )
- On Windows do `setx GREN_GITHUB_TOKEN <API TOKEN>` and restart your shell
Per release:
- Close all issues of the milestone or push them back to an open milestone
2019-09-04 22:47:55 +01:00
- Close the milestone
- Tag and push the repo
```shell
git tag < tag >
git push origin < tag >
```
- Generate CHANGELOG.md with _gren_
```shell
2021-07-01 20:26:24 +02:00
npx github-release-notes@0 .17.1 changelog --tags=all --generate --override
2019-09-04 22:47:55 +01:00
```
- Add the changelog to git and update the tag
```shell
git add CHANGELOG.md
git commit -m "Ship tag < tag > "
2021-07-01 11:01:51 +02:00
git push origin main
2019-09-04 22:47:55 +01:00
git tag -f < tag >
git push --force origin < tag >
```
- Generate release with _gren_
```shell
2021-07-01 20:26:24 +02:00
npx github-release-notes@0 .17.1 release --tags < tag >
2019-09-04 22:47:55 +01:00
```