From 28c24e95faeb5ec7a09b6cb82b81fb61b40d9446 Mon Sep 17 00:00:00 2001 From: Joel Ostblom Date: Wed, 25 Mar 2020 08:32:56 -0700 Subject: [PATCH] Add note on setting baseURL This note already exists for the GitHub pages setup section, and it appears that it is needed for Hugo themes to display correctly on GitLab as well. --- content/en/hosting-and-deployment/hosting-on-gitlab.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/hosting-and-deployment/hosting-on-gitlab.md b/content/en/hosting-and-deployment/hosting-on-gitlab.md index eda592d43..0a40eb824 100644 --- a/content/en/hosting-and-deployment/hosting-on-gitlab.md +++ b/content/en/hosting-and-deployment/hosting-on-gitlab.md @@ -77,6 +77,10 @@ That's it! You can now follow the CI agent building your page at `https://gitlab After the build has passed, your new website is available at `https://.gitlab.io//`. +{{% note %}} +Make sure your `baseURL` key-value in your [site configuration](/getting-started/configuration/) reflects the full URL of your GitLab pages repository if you're using the default GitLab Pages URL (e.g., `https://.gitlab.io//`) and not a custom domain. +{{% /note %}} + ## Next Steps GitLab supports using custom CNAME's and TLS certificates. For more details on GitLab Pages, see the [GitLab Pages setup documentation](https://about.gitlab.com/2016/04/07/gitlab-pages-setup/).