Skip to content

Add Unsplash gallery to photos page#9

Merged
rlaker merged 3 commits into
masterfrom
unsplash-gallery
Jun 5, 2026
Merged

Add Unsplash gallery to photos page#9
rlaker merged 3 commits into
masterfrom
unsplash-gallery

Conversation

@rlaker

@rlaker rlaker commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds an Unsplash gallery section at the top of the photos page, showing latest photos in a 3-column grid
  • Photos are fetched at build time via a GitHub Actions workflow (weekly + manual trigger) into _data/unsplash.json — no API key exposed in client code
  • First 12 photos shown initially with a "Load more" button to reveal the rest
  • Existing Film Photography and Nature galleries kept below

Setup

  • Requires a GitHub secret UNSPLASH_ACCESS_KEY (already added)
  • Run the "Fetch Unsplash photos" workflow manually to refresh, or it auto-runs weekly

Test plan

  • Visit /photos/ and verify the Unsplash grid loads with photos
  • Click "Load more" and confirm remaining photos appear
  • Click a photo and verify it opens on Unsplash in a new tab
  • Confirm no API key is visible in page source
  • Trigger the GitHub Action manually and verify it updates _data/unsplash.json

🤖 Generated with Claude Code

Fetch photos at build time via GitHub Actions into _data/unsplash.json.
The photos page renders them statically with a "Load more" button to
reveal beyond the first 12. No API key in client code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rlaker rlaker temporarily deployed to github-pages June 5, 2026 17:22 — with GitHub Pages Inactive
@rlaker rlaker temporarily deployed to github-pages June 5, 2026 17:32 — with GitHub Pages Inactive
@rlaker rlaker temporarily deployed to github-pages June 5, 2026 17:36 — with GitHub Pages Inactive
@rlaker rlaker merged commit 8a85241 into master Jun 5, 2026
3 checks passed
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