Skip to content

Refactor shared page header markup into a common include#504

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/refactor-common-includes
Draft

Refactor shared page header markup into a common include#504
Copilot wants to merge 1 commit into
mainfrom
copilot/refactor-common-includes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 25, 2026

bio, games, and index each carried their own copy of the document/header shell, which made simple header changes fan out across multiple templates. This consolidates that shared structure into a single include while keeping per-page metadata and asset loading intact.

  • What changed

    • Added src/_includes/page-header.njk for the shared page shell:
      • document + <html>
      • common <head> scaffolding
      • shared body classes
      • GitHub ribbon
      • site header include
  • Template consolidation

    • Updated src/index.njk, src/games.njk, and src/_includes/bio.njk to:
      • define page-specific seo
      • opt into Tailwind CDN only where already used
      • include the shared page-header.njk instead of duplicating the shell
  • Behavior preserved

    • index continues using the built Tailwind stylesheet
    • games and bio continue using the Tailwind CDN path
    • Existing SEO values and page content structure remain page-local
{% set seo = {
  title: "Developer Arcade | Coding Games, XP, and Achievements",
  description: "Play coding mini-games, earn XP, and unlock achievements in the NextCommunity Developer Arcade."
} %}
{% set useTailwindCdn = true %}
{% include "page-header.njk" %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Review in progress

Development

Successfully merging this pull request may close these issues.

2 participants