Get up and running with EBI-themed Jekyll fast (rolled with gh-pages in mind, clone/fork suggested)
This Jekyll template was designed in mind with GitHub pages, you'll certainly be able to use it to start a traditional Jekyll project, but the information below is specifically tailored with GitHub in mind.
- Getting started
- Clone this repo
- Ensure you are working in the
gh-pages
branch
- Basic setup
- Edit _config.yml and set your GitHub URL and project name
- Add content
- Create new posts in _posts
- Create new pages by adding them to the root folder, see sample_page_1.html
Full documentation is available here.
- Configure the gh-pages branch
- Create a
CNAME
file - Add
yourdomainname.com
to that file
- Configrue your domain name's DNS
- Add a CNAME for www to point to
yourusername.github.io
- If you want to point the root domainname.com to gh-pages, set the
A
record to192.30.252.153
- You can also set a second
A
recored to192.30.252.154
- When you're done it should look like:
Record | Type | Value |
---|---|---|
@ | A | 192.30.252.153 |
@ | A | 192.30.252.154 |
WWW | CNAME | your_github_username.github.io |
Running docker-compose up
will bring up a Jekyll site locally. It's fairly representative of the GitHub/GitLab pages build.
NB. You'll need to comment out the jekyll-redirect-from
plugin in config.yml
. The redirect functionality demonstrated in /_posts/2017-02-21-redirects.md
will no longer be supported.
A couple of minor tweaks are needed to make this run on GitLab.
- Clone this repo
- Rename this branch from
gh-pages
topages
. - Update the
config.yml
to set domains/baseurl/repo etc. - Add the Gitlab remote as the new origin and push
The CI process on GitLab should kick off, and deploy to GitLab pages.