```
-**Hugo-theme-learn** provides [archetypes]({{< relref "cont/archetypes.en.md" >}}) to help you create this kind of pages.
+**Hugo-theme-relearn** provides [archetypes]({{< relref "cont/archetypes.en.md" >}}) to help you create this kind of pages.
## Front Matter configuration
Each Hugo page has to define a [Front Matter](https://gohugo.io/content/front-matter/) in *yaml*, *toml* or *json*.
-**Hugo-theme-learn** uses the following parameters on top of Hugo ones :
+**Hugo-theme-relearn** uses the following parameters on top of Hugo ones :
```toml
+++
@@ -143,7 +143,7 @@ weight = 5
### Using a custom title for menu entries
-By default, **Hugo-theme-learn** will use a page's `title` attribute for the menu item (or `linkTitle` if defined).
+By default, **Hugo-theme-relearn** will use a page's `title` attribute for the menu item (or `linkTitle` if defined).
But a page's title has to be descriptive on its own while the menu is a hierarchy.
We've added the `menuTitle` parameter for that purpose:
diff --git a/exampleSite/content/cont/syntaxhighlight.en.md b/exampleSite/content/cont/syntaxhighlight.en.md
index ed1fe72c3e..ba1cc18f96 100644
--- a/exampleSite/content/cont/syntaxhighlight.en.md
+++ b/exampleSite/content/cont/syntaxhighlight.en.md
@@ -4,7 +4,7 @@ title: Code highlighting
weight: 16
---
-Learn theme uses [highlight.js](https://highlightjs.org/) to provide code syntax highlighting.
+Relearn theme uses [highlight.js](https://highlightjs.org/) to provide code syntax highlighting.
## Markdown syntax
@@ -48,7 +48,7 @@ Renders to:
## Supported languages
-Learn theme ships with its own version of highlight.js to support offline browsing. The included package supports 38 common languages, as described on the [highlight.js download page](https://highlightjs.org/download/).
+Relearn theme ships with its own version of highlight.js to support offline browsing. The included package supports 38 common languages, as described on the [highlight.js download page](https://highlightjs.org/download/).
## Identifying failed language detection
@@ -80,7 +80,7 @@ Inside the zip archive downloaded from highlight.js extract the file named `high
static/js/highlight.pack.js
```
-**Do not** replace the existing file at `themes/hugo-theme-learn/static/js/highlight.pack.js`.
+**Do not** replace the existing file at `themes/hugo-theme-relearn/static/js/highlight.pack.js`.
Including the file in the correct path will override the theme default highlight.pack.js and prevent issues caused in the future if the theme default file is updated.
diff --git a/exampleSite/content/cont/tags.en.md b/exampleSite/content/cont/tags.en.md
index 02972bb6b4..0b400c677a 100644
--- a/exampleSite/content/cont/tags.en.md
+++ b/exampleSite/content/cont/tags.en.md
@@ -5,7 +5,7 @@ weight: 40
tags: ["documentation", "tutorial"]
---
-*Learn theme* support one default taxonomy of gohugo: the *tag* feature.
+*Relearn theme* support one default taxonomy of gohugo: the *tag* feature.
## Configuration
diff --git a/exampleSite/content/credits.en.md b/exampleSite/content/credits.en.md
index 1a489fcfc2..82ccac3c3f 100644
--- a/exampleSite/content/credits.en.md
+++ b/exampleSite/content/credits.en.md
@@ -7,9 +7,9 @@ disableToc: true
Thanks to them for making Open Source Software a better place !
-{{% ghcontributors "https://api.github.com/repos/matcornic/hugo-theme-learn/contributors?per_page=100" %}}
+{{% ghcontributors "https://api.github.com/repos/McShelby/hugo-theme-relearn/contributors?per_page=100" %}}
-And a special thanks to [@vjeantet](https://github.com/vjeantet) for his work on [docdock](https://github.com/vjeantet/hugo-theme-docdock), a fork of hugo-theme-learn. v2.0.0 of this theme is inspired by his work.
+And a special thanks to [@vjeantet](https://github.com/vjeantet) for his work on [docdock](https://github.com/vjeantet/hugo-theme-docdock), a fork of hugo-theme-relearn. v2.0.0 of this theme is inspired by his work.
## Packages and libraries
* [mermaid](https://knsv.github.io/mermaid) - generation of diagram and flowchart from text in a similar manner as markdown
diff --git a/exampleSite/content/shortcodes/_index.en.md b/exampleSite/content/shortcodes/_index.en.md
index 754bb0f0ca..51f46485b8 100644
--- a/exampleSite/content/shortcodes/_index.en.md
+++ b/exampleSite/content/shortcodes/_index.en.md
@@ -11,6 +11,6 @@ But this happens to be a bad idea. Everyone uses Markdown because it's pure and
To avoid this limitations, Hugo created [shortcodes](https://gohugo.io/extras/shortcodes/). A shortcode is a simple snippet inside a page.
-**Hugo-theme-learn** provides multiple shortcodes on top of existing ones.
+**Hugo-theme-relearn** provides multiple shortcodes on top of existing ones.
{{%children style="h2" description="true" %}}
diff --git a/exampleSite/content/shortcodes/button.en.md b/exampleSite/content/shortcodes/button.en.md
index 9fb92bd98c..3303dfa400 100644
--- a/exampleSite/content/shortcodes/button.en.md
+++ b/exampleSite/content/shortcodes/button.en.md
@@ -6,11 +6,11 @@ description : "Nice buttons on your page."
A button is a just a clickable button with optional icon.
```
-{{%/* button href="https://getgrav.org/" */%}}Get Grav{{%/* /button */%}}
-{{%/* button href="https://getgrav.org/" icon="fas fa-download" */%}}Get Grav with icon{{%/* /button */%}}
-{{%/* button href="https://getgrav.org/" icon="fas fa-download" icon-position="right" */%}}Get Grav with icon right{{%/* /button */%}}
+{{%/* button href="https://gohugo.io/" */%}}Get Hugo{{%/* /button */%}}
+{{%/* button href="https://gohugo.io/" icon="fas fa-download" */%}}Get Hugo with icon{{%/* /button */%}}
+{{%/* button href="https://gohugo.io/" icon="fas fa-download" icon-position="right" */%}}Get Hugo with icon right{{%/* /button */%}}
```
-{{% button href="https://getgrav.org/" %}}Get Grav{{% /button %}}
-{{% button href="https://getgrav.org/" icon="fas fa-download" %}}Get Grav with icon{{% /button %}}
-{{% button href="https://getgrav.org/" icon="fas fa-download" icon-position="right" %}}Get Grav with icon right{{% /button %}}
+{{% button href="https://gohugo.io/" %}}Get Hugo{{% /button %}}
+{{% button href="https://gohugo.io/" icon="fas fa-download" %}}Get Hugo with icon{{% /button %}}
+{{% button href="https://gohugo.io/" icon="fas fa-download" icon-position="right" %}}Get Hugo with icon right{{% /button %}}
diff --git a/exampleSite/content/shortcodes/expand.en.md b/exampleSite/content/shortcodes/expand.en.md
index dff19061c8..d0341423fe 100644
--- a/exampleSite/content/shortcodes/expand.en.md
+++ b/exampleSite/content/shortcodes/expand.en.md
@@ -21,9 +21,9 @@ proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
this shortcode takes exactly one optional parameter to define the text that appears next to the expand/collapse icon. (default is "Expand me...")
- {{%/*expand "Is this learn theme rocks ?" */%}}Yes !.{{%/* /expand*/%}}
+ {{%/*expand "Does this relearn theme rock?" */%}}Yes !.{{%/* /expand*/%}}
-{{%expand "Is this learn theme rocks ?" %}}Yes !{{% /expand%}}
+{{%expand "Does this relearn theme rock?" %}}Yes !{{% /expand%}}
# Demo
diff --git a/exampleSite/content/shortcodes/siteparam.en.md b/exampleSite/content/shortcodes/siteparam.en.md
index f431ffb904..f97a1cdd64 100644
--- a/exampleSite/content/shortcodes/siteparam.en.md
+++ b/exampleSite/content/shortcodes/siteparam.en.md
@@ -9,7 +9,7 @@ For instance, in this current site, the `editURL` variable is used in `config.to
```toml
[params]
- editURL = "https://github.com/matcornic/hugo-theme-learn/edit/master/exampleSite/content/"
+ editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/master/exampleSite/content/"
```
Use the `siteparam` shortcode to display its value.
diff --git a/exampleSite/layouts/partials/menu-footer.html b/exampleSite/layouts/partials/menu-footer.html
index 5a35bd00fe..c2f27299c1 100644
--- a/exampleSite/layouts/partials/menu-footer.html
+++ b/exampleSite/layouts/partials/menu-footer.html
@@ -1,14 +1,14 @@
- Download
+ Download
- Star
+ Star
- Fork
+ Fork
- Built with from Grav and Hugo
+ Built with from Hugo
diff --git a/layouts/index.html b/layouts/index.html
index cdf25d915e..5f2c477597 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,29 +3,17 @@
-{{if .Site.Home.Content }}
-{{.Site.Home.Content}}
-{{else}}
- {{if eq .Site.Language.Lang "fr"}}
- Personaliser la page d'accueil
-
- Le site fonctionne. Ne pas oublier de personaliser cette page avec votre propre contenu. 3 manières de faire :
-
-
- - 1. Créer un fichier _index.md dans le dossier content et le remplir de Markdown
- - 2. Créer un fichier index.html dans le dossier static et le remplir de code HTML
- - 3. Configurer le serveur http pour rediriger automatiquement la homepage vers la page de votre choix dans le site
-
- {{else}}
- Customize your own home page
-
- The site is working. Don't forget to customize this homepage with your own. You typically have 3 choices :
-
-
- - 1. Create an _index.md document in content folder and fill it with Markdown content
- - 2. Create an index.html file in the static folder and fill the file with HTML content
- - 3. Configure your server to automatically redirect home page to one your documentation page
-
- {{end}}
-{{ end }}
+{{if .Site.Home.Content }}
+{{.Site.Home.Content}}
+{{else}}
+ Customize your own home page
+
+ The site is working. Don't forget to customize this homepage with your own. You typically have 3 choices :
+
+
+ - 1. Create an _index.md document in content folder and fill it with Markdown content
+ - 2. Create an index.html file in the static folder and fill the file with HTML content
+ - 3. Configure your server to automatically redirect home page to one your documentation page
+
+{{ end }}
{{ partial "footer.html" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 091f809488..af8841746d 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -64,8 +64,8 @@
-
-
+
+
{{ if (or (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (not .Site.Params.disableMermaid)) }}
{{ if isset .Params "customMermaidURL" }}
diff --git a/layouts/partials/menu-footer.html b/layouts/partials/menu-footer.html
index 4fdf046b6f..77d1b8e913 100644
--- a/layouts/partials/menu-footer.html
+++ b/layouts/partials/menu-footer.html
@@ -1 +1 @@
-Built with from Grav and Hugo
+Built with from Hugo
diff --git a/netlify.toml b/netlify.toml
index 86d04500b2..ffe062c5e6 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -8,7 +8,7 @@
HUGO_VERSION = "0.72.0"
[context.production.environment]
- HUGO_BASEURL = "https://learn.netlify.app/"
+ HUGO_BASEURL = "https://relearn.netlify.app/"
[context.deploy-preview]
command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"
diff --git a/static/js/hugo-learn.js b/static/js/hugo-relearn.js
similarity index 100%
rename from static/js/hugo-learn.js
rename to static/js/hugo-relearn.js
diff --git a/static/js/learn.js b/static/js/relearn.js
similarity index 100%
rename from static/js/learn.js
rename to static/js/relearn.js
diff --git a/theme.toml b/theme.toml
index b5a30e7bee..07bb50a986 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,21 +1,16 @@
# theme.toml template for a Hugo theme
# See https://github.com/spf13/hugoThemes#themetoml for an example
-name = "Learn"
+name = "Relearn"
license = "MIT"
-licenselink = "https://github.com/matcornic/hugo-theme-learn/blob/master/LICENSE.md"
-description = "Documentation theme for Hugo, based on Grav Learn theme"
-homepage = "https://github.com/matcornic/hugo-theme-learn/"
-repo = "https://github.com/matcornic/hugo-theme-learn"
-tags = ["documentation", "grav", "learn", "doc", "search"]
+licenselink = "https://github.com/McShelby/hugo-theme-relearn/blob/master/LICENSE.md"
+description = "Documentation theme for Hugo"
+homepage = "https://github.com/McShelby/hugo-theme-relearn/"
+repo = "https://github.com/McShelby/hugo-theme-relearn"
+tags = ["documentation", "grav", "learn", "relearn", "doc", "search"]
features = ["documentation", "menu", "nested sections", "search", "mermaid"]
min_version = 0.25
[author]
- name = "Mathieu Cornic"
- homepage = "https://matcornic.github.io/"
-
-[original]
- name = "Grav Learn"
- homepage = "https://learn.getgrav.org/"
- repo = "https://github.com/getgrav/grav-learn"
+ name = "Sören Weber & others"
+ homepage = "https://github.com/McShelby"