It's pretty easy to get started with GitHub pages. They let you host whatever you want in terms of a static site. They host SALSA, Post Self, writing.drab-makyo.com, drab-makyo.com, etc.
A domain points to an IP address that knows how to serve up the files. It does this by using a DNS (domain name server) record. These have to be hosted by some limited sites, including Namecheap.
- In Namecheap, from your dashboard, click
Manage
next to your domain - At the top of the record, click
Advanced DNS
- Under
Host Records
, clickAdd Record
- Enter the following:
- Type:
A record
- Host:
@
- Value:
192.30.252.153
(This is GitHub's domain; it'll know how to serve your page) - TTL: leave as
Automatic
- Click the green check to add, then repeat the same, except under
Value
, put192.30.252.154
- another GitHub domain in case the first gets overloaded
GitHub can host any static site. This means just HTML files, or a generated site such as that produced by Jekyll, which powers the sites above. I'll show it for Jekyll here, and then show how to do Jekyll
-
Log into GitHub
-
At the top of the page, click the
+
with the drop-down arrow next to it, then clickNew Repository
(basically a folder that will host your site) -
Under
Name
, type whatever, so long as it doesn't have spaces; a good idea would just be the URL of your site,lunostophiles.zone
-
Tick the box labeled
Initialize this repository with a README
-
Click the green button at the bottom; you don't need to worry about the rest of the page
-
At the top of the repository section on the next page, click the gear icon with
Settings
by it -
Scroll to the section labeled
GitHub Pages
and clickChoose a Theme
-
Pick a theme you like from the list, then click
Select Theme
-
Go back to the settings page as above and scroll down to
GitHub Pages
, then enter your URL (withouthttp://
or a path or anything else), then save -
From the GitHub repository, you can add files you want, or upload files. Jekyll recognizes both HTML and Markdown files, going off of the file extension:
md
for markdown, andhtml
for html -
If you just create a file, it will use the theme you chose. Alternatively, you can start the page with frontmatter which will allow it to be just a standalone html page:
--- layout: page ---
-
If you use the theme you chose, Jekyll will try to guess the title from the file name (e.g:
my-page.md
will lead to the titleMy Page
. If you want something different, you can use the frontmatter:--- title: "Whatever you want" ---
-
If you want to do blog posts, you can create files in the folder
_posts
. These must be named in the formatYYYY-MM-DD-title.md
(or.html
). For the first one, you can name the file_posts/2017-06-25-whatever.md
(with correct date and title, natch) and it will make the folder for you as you type
From here, we can talk about prose.io