2.3 KiB
title | date |
---|---|
All the cool photos live here | 2019-02-11T18:25:55-08:00 |
This is a photo gallery demo project for Netlify Large Media made with the photos from Unsplash and Hugo.
You can browse the code for this site on GitHub. This project has two branches:
master: A photo gallery that doesn't use Netlify Large Media feature. You can go to README to see how you can deploy this with your Netlify account and start using Large Media feature.
large-media-sample: A photo gallery that uses Netlify Large Media feature. You can go to a static/images folder to see how large media assets are managed with Git. This branch is deployed as https://netlify-photo-gallery.netlify.com/ demo page.
How to start using this?
If you want to try deploying your photo gallery, please go to the README for how to do it.
If you want to contribute to the existing photo gallery site that you have an access to (note: you don't have an access to https://netlify-photo-gallery.netlify.com/ unless you work for Netlify!), you can check out Contributing to a repository with Large Media enabled documentation for how to prepare.
Here is how to add some photos to the gallery:
- Add some images in
static/images
folder, and the info todata/photos.json
- You can check which files/suffix are currently tracked by checking
.gitattributes
file
- You can check which files/suffix are currently tracked by checking
- Once it's done, you can
git add
,git commit
, thengit push
to push them to Netlify/Large Media! - By running
git lfs ls-files
, you can double check which files are managed by Large Media.
With Netlify Large Media, you can do a cool thing like image transformation. You can see the documentation for more detail.