mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 01:57:05 +00:00
Docs: Add missing "-b master" parameter to "git submodule add" command
for correct deployment on GitHub Pages. Thanks, @adrianmoya! Fixes #1777
This commit is contained in:
parent
e69e276ac9
commit
dd85c29091
1 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
aliases:
|
aliases:
|
||||||
- /tutorials/github_pages_blog/
|
- /tutorials/github_pages_blog/
|
||||||
author: Spencer Lyon
|
author: Spencer Lyon
|
||||||
lastmod: 2015-12-24
|
lastmod: 2016-01-14
|
||||||
date: 2014-03-21
|
date: 2014-03-21
|
||||||
linktitle: Hosting on GitHub
|
linktitle: Hosting on GitHub
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -252,11 +252,11 @@ Step by step:
|
||||||
|
|
||||||
1. Create on GitHub `<your-project>-hugo` repository (it will host Hugo's content)
|
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. 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. `git clone <<your-project>-hugo-url> && cd <your-project>-hugo`
|
||||||
3. Make your website work locally (`hugo server -t <yourtheme>`)
|
4. Make your website work locally (`hugo server -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. 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. `git submodule add -b master 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`):
|
7. Almost done: add a `deploy.sh` script to help you (and make it executable: `chmod +x deploy.sh`):
|
||||||
|
|
||||||
```
|
```
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
Loading…
Add table
Reference in a new issue