Skip to content

Add a contributors section to the website homepage - #264

Merged
patrickdappollonio merged 2 commits into
mainfrom
homepage-contributor-list
Jun 21, 2026
Merged

patrickdappollonio merged 2 commits into
mainfrom
homepage-contributor-list

Conversation

@patrickdappollonio

Copy link
Copy Markdown
Owner

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 as dependabot are 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 with npm run contributors), fetches the repo's contributors from the GitHub API, downloads and resizes each avatar, and writes a committed snapshot — src/data/contributors.json plus the images under public/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 contributors and 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 same GH_TOKEN the deploy already uses so it can refresh under the authenticated rate limit. The result is published above the footer on getdux.app.

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
patrickdappollonio merged commit 91fc150 into main Jun 21, 2026
5 checks passed
@patrickdappollonio
patrickdappollonio deleted the homepage-contributor-list branch June 21, 2026 05:30
patrickdappollonio added a commit that referenced this pull request Jun 27, 2026
patrickdappollonio added a commit that referenced this pull request Jul 2, 2026
patrickdappollonio added a commit that referenced this pull request Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant