mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-18 17:50:06 +00:00
Merge pull request #281 from dotboris/hugo-0.55-compat
Make shortcodes & example site compatible with Hugo v0.55
This commit is contained in:
commit
b1b9008854
17 changed files with 30 additions and 24 deletions
|
@ -48,7 +48,7 @@ Discover what this Hugo theme is all about and the core concepts behind it.
|
|||
|
||||
renders as
|
||||
|
||||

|
||||

|
||||
|
||||
**Hugo-theme-learn** provides archetypes to create skeletons for your website. Begin by creating your first chapter page with the following command
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ Découvrez comment utiliser ce thème Hugo et apprenez en les concepts
|
|||
|
||||
s'affiche comme
|
||||
|
||||

|
||||

|
||||
|
||||
**Hugo-theme-learn** fournit des archétypes pour créer des squelettes pour votre site. Commencez par créer votre premier chapitre avec la commande suivante:
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||

|
||||

|
||||
|
|
|
@ -8,4 +8,4 @@ Grâce à la simplicité d'Hugo, cette page est vide car il n'y a quasi pas de p
|
|||
|
||||
Téléchargez la dernière version du [binaire Hugo (> 0.25)](https://gohugo.io/getting-started/installing/) pour votre Système d'exploitation (Windows, Linux, Mac) : et c'est tout !
|
||||
|
||||

|
||||

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

|
||||

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

|
||||

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

|
||||

|
||||
|
||||
### 'Yours‘ variant
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ Si vous avez besoin de changer ce comportement par défaut, créer un nouveau fi
|
|||
themeVariant = "red"
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Variante bleue
|
||||
|
||||
|
@ -63,7 +63,7 @@ Si vous avez besoin de changer ce comportement par défaut, créer un nouveau fi
|
|||
themeVariant = "blue"
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Variante verte
|
||||
|
||||
|
@ -73,7 +73,7 @@ Si vous avez besoin de changer ce comportement par défaut, créer un nouveau fi
|
|||
themeVariant = "green"
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Votre variante
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ It provides:
|
|||
- Automatic menu generation from multilingual content
|
||||
- In-browser language switching
|
||||
|
||||

|
||||

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

|
||||

|
|
@ -12,7 +12,7 @@ Il fournit :
|
|||
- Génération automatique du menu avec le contenu multi-langue
|
||||
- Modification de la langue dans le navigateur
|
||||
|
||||

|
||||

|
||||
|
||||
## Configuration simple
|
||||
|
||||
|
@ -75,4 +75,4 @@ Pour ce faire, ajouter le paramètre `disableLanguageSwitchingButton=true` dans
|
|||
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.
|
||||
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
|
||||
+++
|
||||
|
@ -66,7 +66,7 @@ To tell **Hugo-theme-learn** to consider a page as a chapter, set `chapter=true`
|
|||
|
||||
A **Default** page is any other content page.
|
||||
|
||||

|
||||

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

|
||||

|
||||
|
||||
### Ordering sibling menu/page entries
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ Le fichier `_index.md` est obligatoire dans chaque dossier, c'est en quelques ro
|
|||
Un **Chapitre** affiche une page vouée à être une introduction pour un ensemble de pages filles. Habituellement, il va seulement contenir un titre et un résumé de la section.
|
||||
Vous pouvez définir n'importe quel contenu HTML comme préfixe de l'entrée du menu. Dans l'exemple ci-dessous, c'est juste un nombre mais vous pourriez utiliser une [icône](https://fortawesome.github.io/Font-Awesome/).
|
||||
|
||||

|
||||

|
||||
|
||||
```markdown
|
||||
+++
|
||||
|
@ -66,7 +66,7 @@ Pour dire à **Hugo-theme-learn** de considérer la page comme un chapitre, conf
|
|||
|
||||
Une page **Défaut** est n'importe quelle autre page.
|
||||
|
||||

|
||||

|
||||
|
||||
+++
|
||||
title = "Installation"
|
||||
|
@ -122,7 +122,7 @@ pre = "<i class='fab fa-github'></i> "
|
|||
+++
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Ordonner les entrées dans le menu
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<section class="attachments {{ with .Get "style"}}{{.}}{{ end }}">
|
||||
<label>
|
||||
<i class="fas fa-paperclip" aria-hidden="true"></i>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="btn btn-default">
|
||||
{{ $icon := .Get "icon" }}
|
||||
{{ $iconposition := .Get "icon-position" }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
{{ $showhidden := .Get "showhidden"}}
|
||||
{{ $style := .Get "style" | default "li" }}
|
||||
{{ $depth := .Get "depth" | default 1 }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="expand">
|
||||
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
|
||||
<i style="font-size:x-small;" class="fas fa-chevron-right"></i>
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>{{ .Inner }}</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[build.environment]
|
||||
HUGO_THEME = "repo"
|
||||
HUGO_THEMESDIR = "/opt/build"
|
||||
HUGO_VERSION = "0.50"
|
||||
HUGO_VERSION = "0.55.5"
|
||||
|
||||
[context.production.environment]
|
||||
HUGO_BASEURL = "https://learn.netlify.com/"
|
||||
|
|
Loading…
Add table
Reference in a new issue