Repository navigation
Add a contributors section to the website homepage - #264
Merged
Merged
Conversation
A new section above the footer thanks the project's GitHub contributors with a row of small avatars linking to their profiles. The avatars are downloaded at build time and stored in the repo, so the list still renders even when the GitHub API can't be reached.
patrickdappollonio
added a commit
that referenced
this pull request
Jun 27, 2026
(cherry picked from commit 91fc150)
patrickdappollonio
added a commit
that referenced
this pull request
Jul 2, 2026
(cherry picked from commit 91fc150)
patrickdappollonio
added a commit
that referenced
this pull request
Jul 2, 2026
(cherry picked from commit 91fc150)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a slim contributors section just above the footer on the homepage, leading with "We couldn't have made it happen without our contributors" and a left-to-right wrapping row of small circular avatars. Each avatar links to that person's GitHub profile with
rel="nofollow noreferrer noopener", and bot accounts such asdependabotare filtered out so only people show up.The data is a build-time snapshot. A new script,
scripts/fetch-contributors.mjs(also runnable on its own withnpm run contributors), fetches the repo's contributors from the GitHub API, downloads and resizes each avatar, and writes a committed snapshot —src/data/contributors.jsonplus the images underpublic/contributors/. It refreshes on every build but falls back to the committed snapshot whenever the GitHub API is unavailable or rate-limited, and it never fails the build, so a flaky API can't break a deploy.To refresh the list later, run
npm run contributorsand commit the resulting diff. The GitHub API response is treated as untrusted input, so logins, profile URLs, and avatar hosts are all validated before anything is written or rendered, and the pull-request build now passes the sameGH_TOKENthe deploy already uses so it can refresh under the authenticated rate limit. The result is published above the footer on getdux.app.