Template for a Jekyll website that you can host on GitHub Pages.
- Select Use this template from template repo
- Alternatively you can fork / clone this repo and modify it for your usecase, but this requires extra knowladge that I will not cover here.
- Create a new repo from the above template
- For Repository name -
githubusername.github.io (e.g. nsrutherford.github.io) - Select public or private based on if you want other users to see your website source code
- This does not impact SITE visability, only that of your source code repository
- Non Github-Pro users are only able to select public (see Gitlab Pages if you want private source code without paying a fee)
- Tick Include all branches box to ensure
gh-pagesbranch is included
- For Repository name -
- Switch from
mainbranch togh-pagesbranch- Click dropdown box that says
mainand selectgh-pages
- Click dropdown box that says
- Click on
_config.yml - Click on pencil icon to
Edit this page - Edit the line containing
url(line 28 at the time of writing)- Change
githubusernameto your username e.g. nsrutherford.github.io
- Change
- Scroll to the bottom of the page and click
Commit Changes(green button)
- Select
Settingstab on repository page - Select
Pagestab in the left verticle panel - Under
Sourcesettings- Update
branchtogh-pages - Click
Save
- Update
Wait a couple of minutes to let the changes take effect.
Navigate to https://githubusername.github.io/ and test that you site is live
# clone this repo
git clone <url-to-your-website-repo> $HOME/my-website
cd $HOME/my-website/dev-vm
# start vagrant vm
vagrant up
# connect to your vm using the terminal
vagrant sshSources for you site are localed on the gh-pages/ branch.
Start by editing the information in _config.yml to whatever you desire
| Folder | Description |
|---|---|
| dev-vm | Development VM you can use that is setup with dependencies for quicker development |