Skip to content

Commit fe0326d

Browse files
committed
READ.ME for hugo up to date
1 parent 5163aaa commit fe0326d

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,32 @@ Replace phpMyAdmin with Adminer and you will get a tidier user interface, better
357357
- You have to put : https://"your_website_name"/adminer *in my case https://vbachele.42.fr/adminer*
358358
- You should be redirect on the adminer connexion page
359359

360-
# Service of my choice : hugo
361-
## Useful links
362-
[What is hugo]()
360+
## Service of my choice : hugo
361+
### Useful links
362+
[What is hugo](https://gohugo.io/about/what-is-hugo/)
363+
[How to set up hugo]()
363364

365+
### Definition
366+
Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again.
367+
368+
### How to set up hugo?
369+
1. Modify the docker-compose file
370+
371+
2. Create a dockerfile
372+
- Download hugo
373+
- Create and go the dedicate directory (for me the name is *me*)
374+
- Create your webiste and add your template
375+
- Copy your toml file to replace the one for your directory
376+
377+
3. Add a config.toml file
378+
- The toml file is used by hugo as a configuration file
379+
- You need to add the #baseURL with your url
380+
- Your need to add the theme your downloaded on the dockerfile for my case it is "m10c"
381+
382+
4. Modify the .nginx file
383+
- You have to add a rule to listen the dedicated directory
384+
- Add the rule for the proxy pass to listen your container
385+
- include the params for the proxy for nginx
364386

365387
# Useful things to know about inception dockers and containers
366388
- I installed Ohmyzsh - check my dockerfile to see the command
-290 KB
Binary file not shown.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
#baseURL = "https://vbachele.42.fr/me"
2-
title = "Inception"
32
theme = "m10c"
43
paginate = 8
54
canonifyURLs = true
65

76
[params]
87
author = "Vincent Bachelet"
9-
description = "Dedicated hugo service for inception project"
10-
menu_item_separator = " - "
11-
[[params.social]]
12-
icon = "github"
13-
name = "Github"
14-
url = "https://github.com/vincentbachelet-collab"
8+
description = "Dedicated hugo service for inception project"

0 commit comments

Comments
 (0)