URL naming #265
-
Checks
Link to your website repohttps://jimmy291.github.io/swift.github.io/ Version of Lab Website Template you are using1.2.2 DescriptionI would like to ask how do I change the URL? Now the URL is https://userID.github.io/your-lab.github.io, how can I change it to https://your-lab.github.io |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is shown in the docs here: If your username is |
Beta Was this translation helpful? Give feedback.
This is shown in the docs here:
https://greene-lab.gitbook.io/lab-website-template-docs/getting-started/set-up-your-url
If your username is
jimmy291
, you need to name your repojimmy291.github.io
and your website will appear athttps://jimmy291.github.io
. If you wanted your website to be athttps://swift.github.io
, you would need to change your username toswift
(and I'm certain that username is already taken). This is a limitation of GitHub itself, not the template. GitHub is providing you a domain name for free, and says that it must match your user/org name. I would recommend buying a custom domain name likeswiftlab.com
, as described in the docs.