Blame help.md

15b4b4c
# Hugo container image
15b4b4c
15b4b4c
Hugo is a fast and flexible static site generator.  For further reference and
15b4b4c
usage tips, see https://gohugo.io.
15b4b4c
15b4b4c
## Running the image
15b4b4c
15b4b4c
Hugo needs access to your Hugo project directory to compile your static site.
15b4b4c
15b4b4c
To do so, `cd` into your project directory and run:
15b4b4c
15b4b4c
```
15b4b4c
podman run --rm -v $(pwd):/var/lib/hugo/site:Z -p 1313:1313 IMAGE COMMAND
15b4b4c
```
15b4b4c
15b4b4c
The command above is complete, intended to support project compilation or
15b4b4c
running the internal hugo server in the container, binding it to your host
15b4b4c
`1313` port, just like the `hugo server` command would.
15b4b4c
15b4b4c
Setting an alias with the example command above may aid speeding up
15b4b4c
development.
15b4b4c
15b4b4c
## Volumes
15b4b4c
15b4b4c
### /var/lib/hugo/site
15b4b4c
15b4b4c
This is the image workdir, where the Hugo project directory in your host
15b4b4c
machine should be mounted in this image.
15b4b4c
15b4b4c
## Ports
15b4b4c
15b4b4c
### 1313
15b4b4c
15b4b4c
This port is used to expose the hugo builtin web server for test purposes
15b4b4c
through
15b4b4c
15b4b4c
```
15b4b4c
podman run --rm -v $(pwd):/var/lib/hugo/site:Z -p 1313:1313 IMAGE server
15b4b4c
```