Replace space in filename with hyphen.

Added more information to hugo-commands.md
This commit is contained in:
John Wellbelove 2026-06-01 20:46:22 +01:00
parent d5f4ac5177
commit 85067c6110
2 changed files with 33 additions and 15 deletions

View File

@ -1,15 +0,0 @@
---
title: "Hugo commands"
---
## Generate hugo for localhost
```bash
hugo --cleanDestinationDir
hugo server --disableFastRender
```
## Generate hugo for remote host
```bash
hugo --cleanDestinationDir
hugo --baseURL "https://www.your-web-site.com"
```

View File

@ -0,0 +1,33 @@
---
title: "Hugo commands"
---
Ensure your current working directory is `hugo/` before running these commands.
## Generate hugo for localhost
If you have previously generated for a different host then run `hugo --cleanDestinationDir`
Run either of these two commands.
---
```bash
hugo server
```
This is quicker, as Hugo will only regenerate files it detects have changed.
If you have moved files then the left-hand menu may not always regenerate correctly. If this occurs then run the following command.
---
```bash
hugo server --disableFastRender
```
Hugo will regenerate all of the output html files.
This takes a few seconds to run, but ensures all output files are updated.
## Generate hugo for remote host
If you have previously generated for a different host then run `hugo --cleanDestinationDir`
```bash
hugo --baseURL "https://www.your-web-site.com"
```