coolcut / photon-11ty

https://photon-11ty.netlify.com
MIT License
15 stars 1 forks source link
11ty photo sharing static

Photon - 11ty

Photon is a fast and straightforward way to publish your photos with 11ty. The process is easy while the website is blazing fast and comes without any tracking or other junk. All you need is a bit of Git knowledge and a place to host your 100% static website.

Overview

Example

A live example, running the main branch of this repository, is available on photon-11ty.netlify.com.

Quick deploy

You can get started very quickly by deploying Photon - 11ty to Netlify. Press the Deploy to Netlify button and you are up and running.

Features

How to install Photon?

  1. Fork this repository
  2. Clear everything inside /uploads & /posts
  3. Add a high-resolution version of your photos inside the /uploads directory. Keep in mind, you don't do any image optimization beforehand. Photon will resize and optimize the images during its build process.
  4. Deploy the version you've forked to Netlify or any other hosting provider
  5. Be happy!

How to use Photon?

Photon has two simple rules:

  1. You need to put all images inside the /uploads directory.
  2. To show these images on your website, you need to create a markdown file inside the /posts directory. This markdown file handles everything from referencing the image you want to show to handling additional metadata for this specific post.

A post looks like this:

---
layout: layouts/photo.njk
date: 2020-03-01
caption: Test 1
imageSource: andy-feliciotti-YNkjiFhMtck-unsplash.jpg
imageAlt: This is the alt text
---

Customize

Roadmap

Credits

This project is based on the fantastic 11ty. It was a little inspired by the awesome Photo Stream project made by Tim Van Damme. The pictures displayed on the demo version are all coming from Unsplash.

License

MIT