mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 22:32:02 +08:00
Repair links after making content single language
This commit is contained in:
parent
e4abaabb4c
commit
494a3c8b7c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This repository contains a theme for [Hugo](https://gohugo.io/).
|
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.
|
||||||
|
|
||||||
[](https://app.wercker.com/project/byKey/233466a2be73fcea400e7dc02ef6adf9)
|
[](https://app.wercker.com/project/byKey/233466a2be73fcea400e7dc02ef6adf9)
|
||||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2FMcShelby%2Fhugo-theme-relearn?ref=badge_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
|
## Usage
|
||||||
|
|
||||||
- [Visit the documentation](https://relearn.netlify.com/en/)
|
- [Visit the documentation](https://relearn.netlify.com/)
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ theme = "hugo-theme-relearn"
|
|||||||
themesdir = "../.."
|
themesdir = "../.."
|
||||||
metaDataFormat = "yaml"
|
metaDataFormat = "yaml"
|
||||||
defaultContentLanguageInSubdir = true
|
defaultContentLanguageInSubdir = true
|
||||||
|
relativeURLs = true
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/master/exampleSite/content/"
|
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"
|
title = "Documentation for Hugo Relearn Theme"
|
||||||
weight = 1
|
weight = 1
|
||||||
languageName = "English"
|
languageName = "English"
|
||||||
landingPageURL = "/en"
|
landingPageURL = "/"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Home"
|
landingPageName = "<i class='fas fa-home'></i> Home"
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
[[Languages.en.menu.shortcuts]]
|
||||||
|
@ -109,4 +109,4 @@ landingPageName = "<i class='fas fa-home'></i> Home"
|
|||||||
|
|
||||||
The home button is going to looks like this:
|
The home button is going to looks like this:
|
||||||
|
|
||||||

|

|
||||||
|
@ -48,7 +48,7 @@ Discover what this Hugo theme is all about and the core concepts behind it.
|
|||||||
|
|
||||||
renders as
|
renders as
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**Hugo-theme-relearn** provides archetypes to create skeletons for your website. Begin by creating your first chapter page with the following command
|
**Hugo-theme-relearn** provides archetypes to create skeletons for your website. Begin by creating your first chapter page with the following command
|
||||||
|
|
||||||
|
@ -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.
|
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.
|
||||||
|
|
||||||

|

|
||||||
|
@ -53,7 +53,7 @@ If you need to change this default behavior, create a new file in `layouts/parti
|
|||||||
themeVariant = "red"
|
themeVariant = "red"
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Blue variant
|
### Blue variant
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ If you need to change this default behavior, create a new file in `layouts/parti
|
|||||||
themeVariant = "blue"
|
themeVariant = "blue"
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Green variant
|
### Green variant
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ If you need to change this default behavior, create a new file in `layouts/parti
|
|||||||
themeVariant = "green"
|
themeVariant = "green"
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 'Yours‘ variant
|
### 'Yours‘ variant
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ It provides:
|
|||||||
- Automatic menu generation from multilingual content
|
- Automatic menu generation from multilingual content
|
||||||
- In-browser language switching
|
- In-browser language switching
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Basic configuration
|
## Basic configuration
|
||||||
|
|
||||||
@ -75,4 +75,4 @@ Just set `disableLanguageSwitchingButton=true` in your `config.toml`
|
|||||||
disableLanguageSwitchingButton = true
|
disableLanguageSwitchingButton = true
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
@ -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.
|
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/).
|
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/).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
```markdown
|
```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.
|
A **Default** page is any other content page.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
+++
|
+++
|
||||||
@ -126,7 +126,7 @@ pre = "<i class='fab fa-github'></i> "
|
|||||||
+++
|
+++
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Ordering sibling menu/page entries
|
### Ordering sibling menu/page entries
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user