summaryrefslogtreecommitdiffstats
path: root/docs/content/en/hosting-and-deployment
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-12-08 08:54:25 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-12-08 08:54:25 +0100
commit6c841a691ed567acdddffec84642326decf311ce (patch)
treeffce1423050960a847faf50ab75327015af85ec2 /docs/content/en/hosting-and-deployment
parente71d715b9b0c55aea7ef4fc88642eecd6e7b58c3 (diff)
parent8d9511a08f14260cbfb73119e4afae50e5a9966d (diff)
Diffstat (limited to 'docs/content/en/hosting-and-deployment')
-rw-r--r--docs/content/en/hosting-and-deployment/hosting-on-github.md8
-rw-r--r--docs/content/en/hosting-and-deployment/hosting-on-render.md2
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/content/en/hosting-and-deployment/hosting-on-github.md b/docs/content/en/hosting-and-deployment/hosting-on-github.md
index 443bd4d01..675a696d3 100644
--- a/docs/content/en/hosting-and-deployment/hosting-on-github.md
+++ b/docs/content/en/hosting-and-deployment/hosting-on-github.md
@@ -86,6 +86,14 @@ jobs:
For more advanced settings [actions-hugo](https://github.com/marketplace/actions/hugo-setup) and [actions-gh-pages](https://github.com/marketplace/actions/github-pages-action).
+## Github pages setting
+By default, the GitHub action pushes the generated content to the `gh-pages` branch. This means GitHub has to serve your `gh-pages` branch as a GitHub Pages branch. You can change this setting by going to Settings > GitHub Pages, and change the source branch to `gh-pages`.
+
+## Change baseURL in config.toml
+Don't forget to rename your `baseURL` in `config.toml` with the value `https://<USERNAME>.github.io` for your user repository or `https://<USERNAME>.github.io/<REPOSITORY_NAME>` for a project repository.
+
+Unless this is present in your `config.toml`, your website won't work.
+
## Use a Custom Domain
If you'd like to use a custom domain for your GitHub Pages site, create a file `static/CNAME`. Your custom domain name should be the only contents inside `CNAME`. Since it's inside `static`, the published site will contain the CNAME file at the root of the published site, which is a requirement of GitHub Pages.
diff --git a/docs/content/en/hosting-and-deployment/hosting-on-render.md b/docs/content/en/hosting-and-deployment/hosting-on-render.md
index f23cb42ba..7a77742e2 100644
--- a/docs/content/en/hosting-and-deployment/hosting-on-render.md
+++ b/docs/content/en/hosting-and-deployment/hosting-on-render.md
@@ -6,7 +6,7 @@ date: 2019-06-06
publishdate: 2019-06-06
lastmod: 2020-01-01
categories: [hosting and deployment]
-keywords: [render,hosting,deployment]
+keywords: [hosting,deployment]
authors: [Anurag Goel]
menu:
docs: