If you want a light, fast static site that will not argue with you on deploy day then Jekyll plus GitHub Pages is your buddy. This guide walks through local development theming and deployment with practical tips and a touch of sarcasm for flavor. Expect accurate instructions on Ruby and Jekyll setup, posts in Markdown, front matter handling, local preview, and pushing to GitHub for free hosting.
Step 1 is boring and essential. Install Ruby on your system and then add Jekyll and Bundler. On Windows you can use RubyInstaller or WSL for a friendlier experience.
gem install jekyll bundler
Pin gem versions in a Gemfile so future you does not cry when a dependency updates. This saves precious debugging time and a little dignity.
Run the scaffolding command to get a working site that will not be a complete disaster.
jekyll new myblog
Edit _config.yml
to set your site title, baseurl and permalink style. Pick a theme early to avoid DIY layout regret. If you have a non root baseurl like a project page set that value so links work on GitHub Pages.
Create posts as Markdown files under _posts
. Each post needs YAML front matter at the top with keys like title date categories and layout so Jekyll knows what you mean. Do not forget that dates control sorting and permalinks.
Modify templates in _layouts
and reusable snippets in _includes
. Front matter controls which layout a post uses so learn those keys early and stop blaming the theme.
Start a local server to debug styling and broken links before you push and cause a production surprise.
bundle exec jekyll serve
Visit localhost:4000
in your browser and poke around. Local previews are the difference between a confident deploy and a frantic 2 a m rollback.
Create a repository on GitHub. For a user site name the repo username.github.io
and push the site to the main branch. For a project site use a branch like gh pages or configure the repository Pages settings to serve from the main branch or the docs folder. If that sounds vague read the Pages settings carefully and pick what suits your workflow.
git init
git add .
git commit -m "Initial Jekyll site"
git remote add origin git@github.com:yourname/yourrepo.git
git push origin main
Optional and recommended if you want automation use GitHub Actions to build and deploy so you can sleep while GitHub does the heavy lifting.
_config.yml
if your site will live under a project path so assets and links resolve correctlyFollow these steps and you will have a fast static blog hosted for free on GitHub Pages that is easy to maintain and fun to tweak. If you break something it is usually a missing front matter key or a baseurl mix up. Breathe. Fix it. Push again. The internet forgives in time.
If you want more advanced moves look into custom domains performance headers and GitHub Actions for automated testing and deployment. For now get a post online and enjoy the thrill of static site mastery with minimal drama.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.