Repair links after making content single language

This commit is contained in:
Sören Weber 2021-06-30 21:30:03 +02:00
parent e4abaabb4c
commit 494a3c8b7c
8 changed files with 16 additions and 15 deletions

View file

@ -2,7 +2,7 @@
This repository contains a theme for [Hugo](https://gohugo.io/).
Visit the [theme documentation](https://relearn.netlify.com/en/) to see what is going on. It is actually built with this theme.
Visit the [theme documentation](https://relearn.netlify.com/) to see what is going on. It is actually built with this theme.
[![wercker status](https://app.wercker.com/status/233466a2be73fcea400e7dc02ef6adf9/s/master "wercker status")](https://app.wercker.com/project/byKey/233466a2be73fcea400e7dc02ef6adf9)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FMcShelby%2Fhugo-theme-relearn.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FMcShelby%2Fhugo-theme-relearn?ref=badge_shield)
@ -35,7 +35,7 @@ Check that your Hugo version is minimum `0.25` with `hugo version`.
## Usage
- [Visit the documentation](https://relearn.netlify.com/en/)
- [Visit the documentation](https://relearn.netlify.com/)
## Credits

View file

@ -7,6 +7,7 @@ theme = "hugo-theme-relearn"
themesdir = "../.."
metaDataFormat = "yaml"
defaultContentLanguageInSubdir = true
relativeURLs = true
[params]
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/master/exampleSite/content/"
@ -28,7 +29,7 @@ home = [ "HTML", "RSS", "JSON"]
title = "Documentation for Hugo Relearn Theme"
weight = 1
languageName = "English"
landingPageURL = "/en"
landingPageURL = "/"
landingPageName = "<i class='fas fa-home'></i> Home"
[[Languages.en.menu.shortcuts]]

View file

@ -109,4 +109,4 @@ landingPageName = "<i class='fas fa-home'></i> Home"
The home button is going to looks like this:
![Default Home Button](/en/basics/configuration/images/home_button_defaults.jpg?width=100%)
![Default Home Button](images/home_button_defaults.jpg?width=100%)

View file

@ -48,7 +48,7 @@ Discover what this Hugo theme is all about and the core concepts behind it.
renders as
![A Chapter](/en/basics/installation/images/chapter.png?classes=shadow&width=60pc)
![A Chapter](images/chapter.png?classes=shadow&width=60pc)
**Hugo-theme-relearn** provides archetypes to create skeletons for your website. Begin by creating your first chapter page with the following command

View file

@ -8,4 +8,4 @@ Thanks to the simplicity of Hugo, this page is as empty as this theme needs requ
Just download latest version of [Hugo binary (> 0.25)](https://gohugo.io/getting-started/installing/) for your OS (Windows, Linux, Mac) : it's that simple.
![Magic](/en/basics/requirements/images/magic.gif?classes=shadow)
![Magic](images/magic.gif?classes=shadow)

View file

@ -53,7 +53,7 @@ If you need to change this default behavior, create a new file in `layouts/parti
themeVariant = "red"
```
![Red variant](/en/basics/style-customization/images/red-variant.png?width=60pc)
![Red variant](images/red-variant.png?width=60pc)
### Blue variant
@ -63,7 +63,7 @@ If you need to change this default behavior, create a new file in `layouts/parti
themeVariant = "blue"
```
![Blue variant](/en/basics/style-customization/images/blue-variant.png?width=60pc)
![Blue variant](images/blue-variant.png?width=60pc)
### Green variant
@ -73,7 +73,7 @@ If you need to change this default behavior, create a new file in `layouts/parti
themeVariant = "green"
```
![Green variant](/en/basics/style-customization/images/green-variant.png?width=60pc)
![Green variant](images/green-variant.png?width=60pc)
### 'Yours variant

View file

@ -12,7 +12,7 @@ It provides:
- Automatic menu generation from multilingual content
- In-browser language switching
![I18n menu](/en/cont/i18n/images/i18n-menu.gif)
![I18n menu](images/i18n-menu.gif)
## Basic configuration
@ -75,4 +75,4 @@ Just set `disableLanguageSwitchingButton=true` in your `config.toml`
disableLanguageSwitchingButton = true
```
![I18n menu](/en/cont/i18n/images/i18n-menu.gif)
![I18n menu](images/i18n-menu.gif)

View file

@ -45,7 +45,7 @@ Organize your site like [any other Hugo project](https://gohugo.io/content/organ
A **Chapter** displays a page meant to be used as introduction for a set of child pages. Commonly, it contains a simple title and a catch line to define content that can be found under it.
You can define any HTML as prefix for the menu. In the example below, it's just a number but that could be an [icon](https://fortawesome.github.io/Font-Awesome/).
![Chapter page](/en/cont/pages/images/pages-chapter.png?width=50pc)
![Chapter page](images/pages-chapter.png?width=50pc)
```markdown
+++
@ -66,7 +66,7 @@ To tell **Hugo-theme-relearn** to consider a page as a chapter, set `chapter=tru
A **Default** page is any other content page.
![Default page](/en/cont/pages/images/pages-default.png?width=50pc)
![Default page](images/pages-default.png?width=50pc)
```toml
+++
@ -126,7 +126,7 @@ pre = "<i class='fab fa-github'></i> "
+++
```
![Title with icon](/en/cont/pages/images/frontmatter-icon.png)
![Title with icon](images/frontmatter-icon.png)
### Ordering sibling menu/page entries