in root.html). Outputs custom og:image with assets_prefix normalisation and non-Google site verification. --> Bootstrap 5 Components for Modern Jekyll Themes | zer0-mistakes in _layouts/root.html. What this file adds: - Custom og:image with preview_images.assets_prefix path normalisation for the theme-specific page.preview and page.header.og_image keys. When page.image is set, jekyll-seo-tag handles og:image and this file skips its own og:image output to avoid duplicate tags. - Non-Google site verification tags (Bing, Yandex, Naver, Baidu) Dependencies: - jekyll-seo-tag plugin (loaded in _layouts/root.html via Bootstrap 5 Components for Modern Jekyll Themes | zer0-mistakes ) - site.preview_images config in _config.yml =================================================================== --> Bootstrap 5 Components for Modern Jekyll Themes | zer0-mistakes Skip to main content
Settings
Search
Appearance
Theme Mode
About
Jekyll v3.10.0
Environment Production
Last Build
2026-04-13 14:33 UTC
Current Environment Production
Build Time Apr 13, 14:33
Jekyll v3.10.0
Build env (JEKYLL_ENV) production
Quick Links
Page Location
Page Info
Layout article
Collection posts
Path _posts/2025-01-10-bootstrap-5-components.md
URL /posts/2025/01/10/bootstrap-5-components/
Date 2025-01-10
Theme Skin
SVG Backgrounds
Layer Opacity
0.6
0.04
0.08

Bootstrap 5 Components for Modern Jekyll Themes

Bootstrap 5 is the perfect companion for Jekyll themes. In this article, we’ll explore the most useful Bootstrap components for creating modern, responsive Jekyll sites.

The Bootstrap 5 Advantage

Bootstrap 5 brings several improvements:

  • No jQuery dependency: Pure vanilla JavaScript
  • Improved grid system: Better responsive utilities
  • Enhanced forms: More accessible form controls
  • New utility API: Easily customize utilities
  • RTL support: Right-to-left language support

Essential Components for Jekyll

The Bootstrap navbar is perfect for Jekyll sites:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <div class="container">
    <a class="navbar-brand" href="/">zer0-mistakes</a>
    <button
      class="navbar-toggler"
      data-bs-toggle="collapse"
      data-bs-target="#nav"
    >
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="nav">
      <!-- Navigation items -->
    </div>
  </div>
</nav>

Cards for Content

Cards are versatile containers for blog posts:

<div class="card h-100">
  <img src="" class="card-img-top" />
  <div class="card-body">
    <h5 class="card-title"></h5>
    <p class="card-text"></p>
  </div>
</div>

Responsive Utilities

Bootstrap’s responsive utilities make mobile-first design easy:

  • d-none d-lg-block - Hide on mobile, show on large screens
  • col-12 col-md-6 col-lg-4 - Responsive column widths
  • text-center text-md-start - Responsive text alignment

Start building beautiful Jekyll sites with Bootstrap 5 today!