cheatsheets/gh-pages.md

41 lines
625 B
Markdown
Raw Permalink Normal View History

2014-02-25 10:32:14 +00:00
---
title: GitHub pages
2017-08-28 17:25:55 +00:00
category: Jekyll
2014-02-25 10:32:14 +00:00
---
2017-08-29 15:57:21 +00:00
## Custom domains
2017-08-29 15:43:49 +00:00
2017-08-29 15:57:21 +00:00
### Custom domains
2017-08-29 15:43:49 +00:00
```sh
$ echo "foobar.com" > CNAME
$ git commit && git push
```
Create a `CNAME` file with your domain on it.
2017-08-29 15:57:21 +00:00
See: [Setting up a custom domain](https://help.github.com/articles/quick-start-setting-up-a-custom-domain/) _(github.com)_
2017-08-29 15:43:49 +00:00
### Set up your domain
2014-02-25 10:32:14 +00:00
Subdomain (like www):
2017-08-29 15:43:49 +00:00
{: .-setup}
2014-02-25 10:32:14 +00:00
CNAME => username.github.io
Apex domains:
2017-08-29 15:43:49 +00:00
{: .-setup}
2014-02-25 10:32:14 +00:00
ALIAS => username.github.io
Apex domains (alternative):
2017-08-29 15:43:49 +00:00
{: .-setup}
2014-02-25 10:32:14 +00:00
2017-08-29 15:57:21 +00:00
A => 192.30.252.153
A => 192.30.252.154
2017-08-29 15:43:49 +00:00
## References
{: .-one-column}
- <https://pages.github.com>