OSDN Git Service

Regular updates
[twpd/master.git] / gh-pages.md
1 ---
2 title: GitHub pages
3 category: Jekyll
4 layout: 2017/sheet
5 ---
6
7 ## Custom domains
8
9 ### Custom domains
10
11 ```sh
12 $ echo "foobar.com" > CNAME
13 $ git commit && git push
14 ```
15
16 Create a `CNAME` file with your domain on it.
17
18 See: [Setting up a custom domain](https://help.github.com/articles/quick-start-setting-up-a-custom-domain/) _(github.com)_
19
20 ### Set up your domain
21
22 Subdomain (like www):
23 {: .-setup}
24
25      CNAME => username.github.io
26
27 Apex domains:
28 {: .-setup}
29
30      ALIAS => username.github.io
31
32 Apex domains (alternative):
33 {: .-setup}
34
35     A => 192.30.252.153
36     A => 192.30.252.154
37
38 ## References
39 {: .-one-column}
40
41 - <https://pages.github.com>