Replies: 1 comment
-
Yes, you've got that right! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Description
Hi there
I just wanted to share something that confused me a little bit in the documentation for getting started. In the deployment section it reads:
I think this reading is a little confusing. It first says "if you prefer a project site (links to github pages) and dont use a custom domain (i personally don't), or you want to use something other than github pages, then set the base url to your project name"
Logically, I then read this as : If you are using github pages and have a custom domain, then don't use the baseurl. Otherwise, set it as your project name i.e.
baseurl: /project-nameI tried doing this, and I get an error in the test deployment
Then I set
baseurlto be just an empty string, and it's worked fine.Any thoughts on this? Does this require a change in the getting started section?
EDIT
After rereading the Github pages, I think I understand what's happening. Because I've set my repo name to be the same name as the domain name github gives, I don't need to adjust my baseurl. However, if I were to use say
blogthen that would be reflected ashttps://<username>.github.io/blog.Have I got that right?
Beta Was this translation helpful? Give feedback.
All reactions