Jekyll Markdown and GitHub Pages |Video upload date:  · Duration: PT8M37S  · Language: EN

Compact guide to use Jekyll with Markdown on GitHub Pages for a fast static site workflow and simple deployment steps.

Why use Jekyll with GitHub Pages

Want a small static website that looks good and does not demand souls or server babysitting? Jekyll plus GitHub Pages is the polite choice. Write content in Markdown, sprinkle in YAML front matter to tell Jekyll what to do, and let GitHub host the static site for free. It is fast, simple, and annoyingly reliable.

Overview of the flow

High level steps that will save you from late night regrets

  • Create a repository on GitHub and pick a branch for Pages like main or gh-pages
  • Add a _config.yml with basic site settings and choose a supported theme
  • Author pages and posts in Markdown with YAML front matter at the top
  • Test the site locally with the Jekyll server so you do not push blind faith
  • Push to GitHub and enable Pages in repository settings or use Actions to build

Create the repository and pick a branch

Make a new repo on GitHub. Use main or gh-pages and be consistent. Branch confusion is the most common reason your site refuses to show up right away. Pick one branch and cling to it.

Configure Jekyll and pick a theme

Add a _config.yml file at the repo root with your site name, theme choice, and other basic settings. GitHub Pages only allows certain plugins on native builds. If your theme or workflow needs extra plugins use GitHub Actions to build the site and push the generated files to the Pages branch.

Write Markdown content and use front matter

Put standalone pages in the root and blog posts in _posts. Each file needs YAML front matter between three dashes at the top. That metadata tells Jekyll how to render files and where to put the generated pages on your static website. You will put things like title date and layout in the front matter so templates know what to do.

Test the site locally

Install Jekyll and Bundler on your machine. Then run the local server to preview changes before you push. Commands that usually work

gem install jekyll bundler
bundle install
bundle exec jekyll serve

Local testing catches broken layouts and missing assets so you do not have to explain a broken site to your team after pushing.

Deploy to GitHub Pages

Commit your files and push to the branch you chose. Then enable GitHub Pages in the repository settings and point it to that branch. If you need non supported plugins configure a GitHub Actions workflow to build the site and publish the generated static files to the Pages branch. This gives you more control over themes and steps in your site deployment.

Troubleshooting tips and best practices

  • Branch is king. Double check which branch Pages is serving from
  • Use Actions when your theme needs plugins or a custom build step
  • Keep posts in _posts with the proper filename format so Jekyll picks them up
  • Preview locally to avoid the embarrassment of a broken home page after a push
  • Check the Actions logs and the Pages build log when things go wrong

Final notes

This tutorial covers the essentials you need to build a simple static site with Jekyll, author content in Markdown, use front matter for metadata, test locally with the Jekyll server, and deploy with GitHub Pages. Follow these steps and you will have a tidy static website with minimal fuss and barely any magic. If you want more control bring in GitHub Actions and let automation handle the heavy lifting while you sip something warm and pretend it was easy.

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.