From dd85c290911e57eafd9f41e66005b54225e72eb0 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 14 Jan 2016 01:22:48 -0700 Subject: [PATCH] Docs: Add missing "-b master" parameter to "git submodule add" command for correct deployment on GitHub Pages. Thanks, @adrianmoya! Fixes #1777 --- docs/content/tutorials/github-pages-blog.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/tutorials/github-pages-blog.md b/docs/content/tutorials/github-pages-blog.md index 43cea51fe..ba6b09691 100644 --- a/docs/content/tutorials/github-pages-blog.md +++ b/docs/content/tutorials/github-pages-blog.md @@ -2,7 +2,7 @@ aliases: - /tutorials/github_pages_blog/ author: Spencer Lyon -lastmod: 2015-12-24 +lastmod: 2016-01-14 date: 2014-03-21 linktitle: Hosting on GitHub toc: true @@ -252,11 +252,11 @@ Step by step: 1. Create on GitHub `-hugo` repository (it will host Hugo's content) 2. Create on GitHub `.github.io` repository (it will host the `public` folder: the static website) -2. `git clone <-hugo-url> && cd -hugo` -3. Make your website work locally (`hugo server -t `) -4. Once you are happy with the results, Ctrl+C (kill server) and `rm -rf public` (don't worry, it can always be regenerated with `hugo -t `) -5. `git submodule add git@github.com:/.github.io.git public` -6. Almost done: add a `deploy.sh` script to help you (and make it executable: `chmod +x deploy.sh`): +3. `git clone <-hugo-url> && cd -hugo` +4. Make your website work locally (`hugo server -t `) +5. Once you are happy with the results, Ctrl+C (kill server) and `rm -rf public` (don't worry, it can always be regenerated with `hugo -t `) +6. `git submodule add -b master git@github.com:/.github.io.git public` +7. Almost done: add a `deploy.sh` script to help you (and make it executable: `chmod +x deploy.sh`): ``` #!/bin/bash