jineshnagori/blogspot

Refactor the Codebase to be DRY (Don't Repeat Yourself)

Open

#307 opened on Oct 4, 2025

 (3 comments) (0 reactions) (1 assignee)HTML (190 forks)auto 404
enhancementgood first issuehacktoberfesthacktoberfest-accepted

Repository metrics

Stars
 (39 stars)
PR merge metrics
 (PR metrics pending)

Description

This is a high-level issue to track the overall progress of making our codebase more modular and maintainable. The current HTML files (index.html, about.html, etc.) repeat large chunks of code, specifically the navbar, footer, section, and common scripts. This makes updates difficult and inconsistent. The goal is to isolate these repeated sections into reusable templates that can be loaded dynamically.

Tasks:

  • Create a reusable navbar template.
  • Create a reusable footer template.
  • Centralize common JavaScript logic.
  • Modularize the CSS files.

Contributor guide