This commit is contained in:
parent
970b7bc0ab
commit
48f46bbb6a
114
README.md
114
README.md
@ -30,35 +30,6 @@ rm -rf hugo*_linux-amd64.deb
|
|||||||
hugo version
|
hugo version
|
||||||
```
|
```
|
||||||
|
|
||||||
- Créer la structure du site:
|
|
||||||
```bash
|
|
||||||
hugo new site mon-site
|
|
||||||
```
|
|
||||||
|
|
||||||
- Créer du contenu:
|
|
||||||
```bash
|
|
||||||
cd mon-site
|
|
||||||
hugo new posts/mon-post.md
|
|
||||||
nano posts/mon-post.md
|
|
||||||
```
|
|
||||||
|
|
||||||
Ajouter des medias:
|
|
||||||
- images:
|
|
||||||
```bash
|
|
||||||
## Image via link:
|
|
||||||

|
|
||||||
|
|
||||||
------
|
|
||||||
|
|
||||||
## Image via url locale (/static):
|
|
||||||

|
|
||||||
```
|
|
||||||
- videos:
|
|
||||||
```bash
|
|
||||||
## Vidéo Youtube:
|
|
||||||
{{< youtube ZSWzPI4BqvA >}}
|
|
||||||
```
|
|
||||||
|
|
||||||
### AJOUT D'UN THEME :art:
|
### AJOUT D'UN THEME :art:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -67,80 +38,7 @@ git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git theme
|
|||||||
echo theme = \"ananke\" >> config.toml
|
echo theme = \"ananke\" >> config.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
Les thèmes HUGO:
|
> Les thèmes HUGO CV: https://master--hugothemes.netlify.app/tags/resume/
|
||||||
- https://jamstackthemes.dev/ssg/hugo/
|
|
||||||
- https://hugothemesfree.com/
|
|
||||||
- https://master--hugothemes.netlify.app/
|
|
||||||
|
|
||||||
### CONFIGURATION DU CONFIG.TOML :wrench:
|
|
||||||
|
|
||||||
- Configuration de base
|
|
||||||
```bash
|
|
||||||
# Configuration de l'adresse, titre (onglet) et des chemins vers les contenus
|
|
||||||
baseurl = "/"
|
|
||||||
contentdir = "content"
|
|
||||||
layoutdir = "layouts"
|
|
||||||
publishdir = "public"
|
|
||||||
title = "Mon super site!!!"
|
|
||||||
canonifyurls = true
|
|
||||||
|
|
||||||
# ACCUEIL
|
|
||||||
[Params]
|
|
||||||
subtitle = "Portfolio made in HUGO !"
|
|
||||||
logo = "img/logo2.png"
|
|
||||||
favicon = "img/favicon.ico"
|
|
||||||
dateFormat = "January 2, 2006"
|
|
||||||
commit = false
|
|
||||||
rss = false
|
|
||||||
comments = true
|
|
||||||
```
|
|
||||||
|
|
||||||
- Création d'un menu
|
|
||||||
```bash
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Post 1"
|
|
||||||
url = "/post/post1"
|
|
||||||
weight = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "A propos"
|
|
||||||
url = "/page/about"
|
|
||||||
weight = 2
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Projets"
|
|
||||||
url = "/page/about"
|
|
||||||
weight = 3
|
|
||||||
```
|
|
||||||
|
|
||||||
- Création d'un sous menu
|
|
||||||
```bash
|
|
||||||
[[menu.main]]
|
|
||||||
parent = "Projets"
|
|
||||||
name = "Projet 1"
|
|
||||||
url = "/projets/projet1"
|
|
||||||
weight = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
parent = "Projets"
|
|
||||||
name = "Projet 2"
|
|
||||||
url = "/projets/projet2"
|
|
||||||
weight = 2
|
|
||||||
```
|
|
||||||
|
|
||||||
:warning: Créer les dossiers et les fichiers correspondant. Les urls ne prennent pas l'extension .md du fichier
|
|
||||||
|
|
||||||
- Création des icônes reseaux sociaux
|
|
||||||
```bash
|
|
||||||
[Author]
|
|
||||||
name = ""
|
|
||||||
email = ""
|
|
||||||
gitlab = ""
|
|
||||||
github = ""
|
|
||||||
twitter = ""
|
|
||||||
reddit = ""
|
|
||||||
linkedin = ""
|
|
||||||
```
|
|
||||||
|
|
||||||
### LANCER LE SERVEUR :rocket:
|
### LANCER LE SERVEUR :rocket:
|
||||||
|
|
||||||
@ -205,17 +103,11 @@ docker build -t hugo-site:1.0 .
|
|||||||
docker run -d -p 8989:80 hugo-site:1.0
|
docker run -d -p 8989:80 hugo-site:1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> http://localhost:8989
|
||||||
|
|
||||||
## DOCUMENTATION :books:
|
## DOCUMENTATION :books:
|
||||||
|
|
||||||
[DOC DU GARAGE](https://docs.legaragenumerique.xyz/divers/devops/hugo/)
|
[DOC DU GARAGE](https://docs.legaragenumerique.xyz/divers/devops/hugo/)
|
||||||
[DOC OFFICIELLE](https://gohugo.io/documentation/)
|
[DOC OFFICIELLE](https://gohugo.io/documentation/)
|
||||||
[DOC MARKDOWN](https://www.markdownguide.org/basic-syntax/)
|
[DOC MARKDOWN](https://www.markdownguide.org/basic-syntax/)
|
||||||
|
|
||||||
## CI/CD :repeat:
|
|
||||||
|
|
||||||
- WEB2PDF.py
|
|
||||||
- .drone.yml
|
|
||||||
|
|
||||||
## TO DO :bookmark_tabs:
|
|
||||||
|
|
||||||
- [ ] CI/CD schema
|
|
Loading…
x
Reference in New Issue
Block a user