From d7bb8f0c52e4322d6767cfaba74210ac6e0f9ea1 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sun, 8 Mar 2026 03:03:09 +0100 Subject: [PATCH] fix: add resilient github and changelog API fallbacks --- _includes/components/widgets/github-repos.njk | 119 +++++++++++++++--- changelog.njk | 32 ++++- .../components/widgets/github-repos.njk | 119 +++++++++++++++--- theme/changelog.njk | 32 ++++- 4 files changed, 260 insertions(+), 42 deletions(-) diff --git a/_includes/components/widgets/github-repos.njk b/_includes/components/widgets/github-repos.njk index 3afeeee..3adf963 100644 --- a/_includes/components/widgets/github-repos.njk +++ b/_includes/components/widgets/github-repos.njk @@ -1,5 +1,9 @@ {# GitHub Activity Widget - Tabbed Commits/Repos/Featured/PRs with live API data #} +{% set ghFallbackCommits = githubActivity.commits if githubActivity and githubActivity.commits else [] %} +{% set ghFallbackFeatured = githubActivity.featured if githubActivity and githubActivity.featured else [] %} +{% set ghFallbackContributions = githubActivity.contributions if githubActivity and githubActivity.contributions else [] %} +{% set ghFallbackRepos = githubRepos if githubRepos else [] %}