From 634887861c8b8bf9d9df340c970da1d93d93d0a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 May 2026 13:02:46 +0000 Subject: [PATCH] Refactor shared page header include Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/4cb5faad-e8cb-4bbb-99a7-c1d9d8983ba2 Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com> --- src/_includes/bio.njk | 60 ++++++++++++++--------------------- src/_includes/page-header.njk | 18 +++++++++++ src/games.njk | 30 ++++++------------ src/index.njk | 29 +++++------------ 4 files changed, 59 insertions(+), 78 deletions(-) create mode 100644 src/_includes/page-header.njk diff --git a/src/_includes/bio.njk b/src/_includes/bio.njk index b6a2e143..ec745270 100644 --- a/src/_includes/bio.njk +++ b/src/_includes/bio.njk @@ -1,39 +1,27 @@ - - - - - - {% set seoBioDescription = bio - and (bio - | replace('\r', ' ') - | replace('\n', ' ') - | replace('\t', ' ') - | replace('"', "'") - | trim - | truncate(160)) - or "" %} - {% set seo = { - title: name + " | " + role + " | NextCommunity", - description: (seoBioDescription or ("Explore " + name + "'s developer profile, skills, and social links on NextCommunity.")), - keywords: "developer profile, " + name + ", " + role + ", github profile, software developer portfolio", - type: "profile", - image: site.defaultImage, - person: { - name: name, - role: role, - github: github, - linkedin: linkedin - } - } %} - {% include "seo-meta.njk" %} - - - - - - {% include "github-ribbon.njk" %} - - {% include "header.njk" %} +{% set seoBioDescription = bio + and (bio + | replace('\r', ' ') + | replace('\n', ' ') + | replace('\t', ' ') + | replace('"', "'") + | trim + | truncate(160)) + or "" %} +{% set seo = { + title: name + " | " + role + " | NextCommunity", + description: (seoBioDescription or ("Explore " + name + "'s developer profile, skills, and social links on NextCommunity.")), + keywords: "developer profile, " + name + ", " + role + ", github profile, software developer portfolio", + type: "profile", + image: site.defaultImage, + person: { + name: name, + role: role, + github: github, + linkedin: linkedin + } +} %} +{% set useTailwindCdn = true %} +{% include "page-header.njk" %}
diff --git a/src/_includes/page-header.njk b/src/_includes/page-header.njk new file mode 100644 index 00000000..476ca7e9 --- /dev/null +++ b/src/_includes/page-header.njk @@ -0,0 +1,18 @@ + + + + + + {% include "seo-meta.njk" %} + {% if useTailwindCdn %} + + {% else %} + + {% endif %} + + + + + {% include "github-ribbon.njk" %} + + {% include "header.njk" %} diff --git a/src/games.njk b/src/games.njk index dc385c6d..5ff5510a 100644 --- a/src/games.njk +++ b/src/games.njk @@ -2,27 +2,15 @@ layout: false permalink: /games/ --- - - - - - - {% 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.", - keywords: "developer games, coding arcade, programming mini games, developer xp, gamified coding", - type: "website", - image: "/assets/img/next.jpeg" - } %} - {% include "seo-meta.njk" %} - - - - - - {% include "github-ribbon.njk" %} - - {% include "header.njk" %} +{% 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.", + keywords: "developer games, coding arcade, programming mini games, developer xp, gamified coding", + type: "website", + image: "/assets/img/next.jpeg" +} %} +{% set useTailwindCdn = true %} +{% include "page-header.njk" %}
diff --git a/src/index.njk b/src/index.njk index b2c45845..707c0d14 100644 --- a/src/index.njk +++ b/src/index.njk @@ -1,27 +1,14 @@ --- layout: false --- - - - - - - {% set seo = { - title: "NextCommunity Developer Directory | Discover Open-Source Talent", - description: "Explore developer profiles from around the world, discover skills, and connect with open-source contributors in the NextCommunity directory.", - keywords: "developer directory, open source developers, software engineers, github developers, developer community, global tech talent", - type: "website", - image: "/assets/img/next.jpeg" - } %} - {% include "seo-meta.njk" %} - - - - - - {% include "github-ribbon.njk" %} - - {% include "header.njk" %} +{% set seo = { + title: "NextCommunity Developer Directory | Discover Open-Source Talent", + description: "Explore developer profiles from around the world, discover skills, and connect with open-source contributors in the NextCommunity directory.", + keywords: "developer directory, open source developers, software engineers, github developers, developer community, global tech talent", + type: "website", + image: "/assets/img/next.jpeg" +} %} +{% include "page-header.njk" %}