%raw% is only for local ?

This commit is contained in:
makayabou 2020-12-28 22:39:48 +01:00
parent 99f827f7b5
commit 49c816f71b

View File

@ -14,8 +14,11 @@ Cette commande va créer tout l'arborescence nécessaire à Hugo dans le dossier
## Modification du `config.toml`
Edit at least `url` to reflect the adress where it will be deployed by gitlab pages.
If your project is located at `https://gitlab.com/myuser/agroup/myproject`, then
your website will be deployed at `https://myuser.gitlab.io/agroup/myproject`.
!!!note "Determine URL"
If your project is located at `https://gitlab.com/myuser/agroup/myproject`, then
your website will be deployed at `https://myuser.gitlab.io/agroup/myproject`.
Ajouter les éléments suivants à votre `config.toml`:
```
@ -69,10 +72,9 @@ Dans le dossier `layouts` on créé l'arborescence suivante:
??? note "**layouts/index.html**"
=== "Contenu"
```
{% raw %}
{{define "main"}}
{{ partial "hero.html" }}
{{end}} {% endraw %}
{{end}}
```
=== "Explication"
Il s'agit d'un template spécifique à la page d'accueil.