Photo Gallery Instructions

How to Add a New Photo Project

Adding a new photo project is easy! Just follow these 3 simple steps:

Step 1: Create a Subfolder for Your Project

Create a new folder inside assets/photos/ with your project name:

assets/photos/your-project-name/

For example:

Step 2: Add Your Photos

Copy all the images for this project into the new folder. Supported formats: JPG, PNG, etc.

Step 3: Create a Project Page

Create a new markdown file in collections/_photo-projects/ with the same name as your folder:

collections/_photo-projects/your-project-name.md

Use this template:

---
title: "Your Project Title"
permalink: /photos/your-project-name/
description: "Brief description of this photo collection"
header:
  image: /assets/photos/your-project-name/cover-image.jpg
  teaser: /assets/photos/your-project-name/thumbnail-image.jpg

gallery:
  - url: /assets/photos/your-project-name/photo1.jpg
    image_path: /assets/photos/your-project-name/photo1.jpg
    alt: "Photo 1 description"
    location: "City, Country"  # Optional: Location will appear with πŸ“ icon in lightbox
  - url: /assets/photos/your-project-name/photo2.jpg
    image_path: /assets/photos/your-project-name/photo2.jpg
    alt: "Photo 2 description"
    location: "Another location"
  # Add more photos as needed
---

Write a description of your photo project here. This text will appear above the gallery.

Note about EXIF metadata: Camera settings (ISO, aperture, shutter speed, focal length, camera model) are automatically extracted from your JPG files and displayed in the lightbox when you click on an image. You don’t need to add them manually!

Edit collections/_pages/photos.md and add your project to the gallery:

gallery:
  # ... existing projects ...
  - url: /photos/your-project-name/
    image_path: /assets/photos/your-project-name/thumbnail-image.jpg
    alt: "Your Project Title"
    title: "Your Project Title"

The main gallery page uses clickable image thumbnails with overlaid titles.

Photo Metadata & Location

EXIF Data (Automatic): Camera settings are automatically extracted from your photos:

This information appears in the lightbox when you click on an image. No manual entry needed!

Location (Manual): Add the location field to display where the photo was taken:

gallery:
  - url: /assets/photos/northern-lights/photo.jpg
    image_path: /assets/photos/northern-lights/photo.jpg
    alt: "Aurora Borealis"
    location: "TromsΓΈ, Norway"  # Will show as "πŸ“ TromsΓΈ, Norway"

When viewing an image in the lightbox:

The project gallery displays images in a horizontal scrollable layout by default. Images are clickable to open in a lightbox viewer where you can:

Tips

Image Protection

The gallery includes basic protection features:

Note: This only deters casual users. For better protection, consider adding watermarks to your images.

Project Structure

eloMG.github.io/
β”œβ”€β”€ assets/photos/
β”‚   β”œβ”€β”€ your-project-1/
β”‚   β”‚   β”œβ”€β”€ photo1.jpg
β”‚   β”‚   β”œβ”€β”€ photo2.jpg
β”‚   β”‚   └── ...
β”‚   └── your-project-2/
β”‚       β”œβ”€β”€ photo1.jpg
β”‚       └── ...
β”œβ”€β”€ collections/
β”‚   β”œβ”€β”€ _pages/
β”‚   β”‚   └── photos.md          # Main gallery page
β”‚   └── _photo-projects/
β”‚       β”œβ”€β”€ your-project-1.md   # Individual project pages
β”‚       └── your-project-2.md
└── _layouts/
    └── photo-project.html      # Layout template

Examples

Check out these example projects: