lcpq-codes/README.md

44 lines
717 B
Markdown
Raw Permalink Normal View History

Website build with Hugo 0.84.4
2020-07-09 19:30:50 +02:00
# Hugo
## Get Hugo
https://gohugo.io/getting-started/installing/
2020-07-09 19:44:21 +02:00
## Clone website repo
2020-07-09 19:30:50 +02:00
```
git clone --recurse-submodules https://git.irsamc.ups-tlse.fr/LCPQ/lcpq-codes.git
```
2020-07-09 19:44:21 +02:00
## Local preview for testing
2020-07-09 19:30:50 +02:00
```
cd lcpq-codes
hugo serve
```
2020-07-09 19:44:21 +02:00
you will get a message in the terminal similar to
```
Web Server is available at http://localhost:1313/codes/ (bind address 127.0.0.1)
Press Ctrl+C to stop
```
Open the address in your browser to preview the web site.
## Compile the website
2020-07-09 19:30:50 +02:00
```
hugo
```
2020-07-09 19:44:21 +02:00
The Pages are created in the `public` folder
## Modify an existing page
The pages are stored in the `content` directory.
2020-07-09 19:30:50 +02:00
## Create a new page
```
hugo new newproject/_index.md
2020-07-09 19:31:54 +02:00
```
2020-07-09 19:30:50 +02:00