Skip to content
Blog Templates Bootstrap 5 sasspostcsspugnode.js

Bootstrap 5 Blog Template with Featured Posts - Blog Home

A simple Bootstrap 5 starter for a blog homepage, featuring a navbar, header, and multiple post cards.

By StartBootstrap startbootstrap/startbootstrap-blog-home 306 stars

Introduction

Blog Home is a starter template for a blog homepage built with Bootstrap 5. It provides a ready‑made layout that includes a navigation bar, a header, a featured post card, and a responsive grid of blog posts. The project is open source and released under the MIT license.

What this project offers

  • A complete HTML page ready to be served from the dist folder.
  • Pre‑compiled CSS and JavaScript that use Bootstrap 5.2.3.
  • Source files written in Pug, SCSS, and plain JavaScript, allowing you to customize the template before building.
  • A simple development workflow with live‑reload support via BrowserSync.

Main features

  • Responsive navigation bar (dark theme).
  • Header section with a title and tagline.
  • Featured post card with image, date, title, excerpt, and “Read more” button.
  • Grid of additional post cards that re‑flow on different screen sizes.
  • All components use Bootstrap’s grid and utility classes, so they adapt to mobile, tablet, and desktop widths.

Technology stack

  • Bootstrap 5 (CSS framework)
  • Sass for styling (src/scss/styles.scss)
  • PostCSS with Autoprefixer for CSS processing
  • Pug for HTML templating (src/pug/index.pug)
  • Node.js and npm for the build system
  • BrowserSync for live preview during development

Requirements

  • Node.js (required to run the build scripts)
  • npm (comes with Node.js)

Installation

Follow these steps to get a working copy of the template on your computer.

  1. Download the ZIP file
# The ZIP is provided at the following path
/download/blog-home-bootstrap5.zip
  1. Extract the archive
unzip blog-home-bootstrap5.zip -d blog-home
cd blog-home
  1. Install Node.js dependencies
npm install
  1. Build the project (this runs the clean step and compiles Pug, SCSS, JavaScript, and assets)
npm run build
  1. Open the generated page

    The build creates a dist folder. Open the HTML file in a browser:

# On macOS / Linux
open dist/index.html

# On Windows
start dist\index.html

You should see the fully rendered blog homepage.

Optional: Start a live‑reload development server

If you want the browser to refresh automatically while you edit source files, run:

npm start

This command builds the project, starts BrowserSync, and watches the src directory for changes.

Configuration

The template does not require any configuration files to run. All build settings are defined in the package.json scripts and the scripts/ folder. If you need to change the output location, edit the build scripts in scripts/ (advanced).

Customizing the project

  • HTML – Edit src/pug/index.pug. After saving, run npm run build (or npm start for live reload) to regenerate dist/index.html.
  • Styles – Modify src/scss/styles.scss. The SCSS is compiled to dist/css/styles.css.
  • JavaScript – Update src/js/scripts.js. The file is copied to dist/js/scripts.js.
  • Assets – Place images, favicons, or other static files in src/assets/. They are copied to dist/assets/ during the build.

Because the project uses standard Bootstrap classes, you can also add or replace components by following Bootstrap’s documentation.

Project structure

LICENSE
README.md
package.json
package-lock.json
dist/
  assets/
    favicon.ico
  css/
    styles.css
  js/
    scripts.js
  index.html
src/
  assets/
    favicon.ico
  js/
    scripts.js
  pug/
    index.pug
  scss/
    styles.scss
scripts/
  build-assets.js
  build-pug.js
  build-scripts.js
  build-scss.js
  clean.js
  start.js
  start-debug.js
  ... (other helper scripts)

Tips

  • Run npm run clean before a full rebuild if you suspect stale files in dist.
  • Use npm run start:debug to launch the project with additional debugging output.
  • The template is fully responsive; test it on different devices by resizing the browser window or using the developer tools’ device mode.
  • All external libraries are listed in package.json; you can upgrade Bootstrap by changing the version there and re‑running npm install followed by npm run build.

License and attribution

The project is licensed under the MIT License. See the full license file at the repository: https://github.com/startbootstrap/startbootstrap-blog-home/blob/master/LICENSE.

When using this template, keep the LICENSE file in your distribution and retain the attribution to the original author (Start Bootstrap).