2020-11-05 19:56:59 +01:00
|
|
|
## Docker for local development and testing
|
|
|
|
|
|
|
|
1. Build Docker image: `docker build -t hugo .`
|
2020-11-23 22:53:05 +01:00
|
|
|
2. Run container: `docker run --rm -v $PWD:/var/www/html -p 1313:1313 hugo`
|
2020-11-26 21:00:57 +01:00
|
|
|
|
|
|
|
## Create a new news post
|
|
|
|
|
|
|
|
```sh
|
|
|
|
export TITLE="insert-title-here"
|
|
|
|
hugo new "news/$TITLE.md" && cp "content/news/$TITLE.md" "content/news/$TITLE.de.md"
|
|
|
|
```
|