A Hugo static site for displaying photography portfolios with Flickr integration.
This site uses build-time static generation rather than runtime JavaScript galleries:
- Go CLI tool fetches Flickr photoset metadata via REST API
- Raw JSON responses stored in
data/flickr/photosets/ - Hugo generates one HTML page per photo
- Images served directly from Flickr CDN
Install netlify-cli with brew install netlify-cli and then:
netlify dev
Which will also simulate edge functions, etc.
Alternatively, hugo directly:
hugo serve
To fetch photoset metadata, you need a Flickr API key:
- Get key at https://www.flickr.com/services/apps/create/
- Export as environment variable:
export FLICKR_API_KEY=your-key-here - Run importer:
flickrimport(orgo run ./cmd/flickrimport) - For private photos, you'll need to setup OAuth
export FLICKR_CONSUMER_KEY=your-key-here,export FLICKR_CONSUMER_SECRET=your-secret-hereand thenflickrimport -initOAuth