mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Update github-pages-blog.md
change `hugo serve` to `hugo server`
This commit is contained in:
parent
fb0facefa8
commit
ecb2aca6a2
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ Step by step:
|
|||
1. Create on GitHub `<your-project>-hugo` repository (it will host Hugo's content)
|
||||
2. Create on GitHub `<username>.github.io` repository (it will host the `public` folder: the static website)
|
||||
2. `git clone <<your-project>-hugo-url> && cd <your-project>-hugo`
|
||||
3. Make your website work locally (`hugo serve --watch -t <yourtheme>`)
|
||||
3. Make your website work locally (`hugo server --watch -t <yourtheme>`)
|
||||
4. Once you are happy with the results, <kbd>Ctrl</kbd>+<kbd>C</kbd> (kill server) and `rm -rf public` (don't worry, it can always be regenerated with `hugo -t <yourtheme>`)
|
||||
5. `git submodule add git@github.com:<username>/<username>.github.io.git public`
|
||||
6. Almost done: add a `deploy.sh` script to help you (and make it executable: `chmod +x deploy.sh`):
|
||||
|
|
Loading…
Reference in a new issue