A minimal Jekyll site with a single template and a top navigation bar, ideal for lightweight company sites.
-
Create a new GitHub repo (public or private).
-
Download and unzip this starter, then commit/push the files to your repo's default branch (usually
main). -
Enable GitHub Pages
- Go to Settings → Pages.
- Source: “Deploy from a branch”
- Branch:
mainand select/ (root). - Click Save.
-
Set your custom domain (optional but recommended)
- In Settings → Pages → Custom domain, enter your domain, e.g.
www.example.com. - GitHub will create a
CNAMEfile automatically (this starter already includes one withwww.example.com— edit if needed). - Tick Enforce HTTPS once the certificate is ready.
- In Settings → Pages → Custom domain, enter your domain, e.g.
-
DNS records (simplest setup)
- For
www(recommended canonical): create a CNAME record- Host/Name:
www - Value/Target:
USERNAME.github.io
- Host/Name:
- For the root domain (
example.com): create A records pointing to GitHub Pages:- 185.199.108.153
- 185.199.109.153
- 185.199.110.153
- 185.199.111.153
In GitHub Pages, set the custom domain to the
wwwversion (e.g.,www.example.com). With the A records in place, GitHub will redirect the root domain towww. - For
-
Edit navigation
-
Open
_config.ymland edit thenav:list to add/remove pages. -
Create new pages as Markdown files with YAML front matter:
--- layout: default title: New Page permalink: /new-page --- Page content in Markdown.
-
If you want to run the site locally, install Jekyll:
gem install bundler jekyll # Requires Ruby
jekyll serveThen open http://127.0.0.1:4000
Tip: Keep it simple. You don't need any build workflows — GitHub will build Jekyll for you.