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"
    title: "Caption for photo 1"
  - url: /assets/photos/your-project-name/photo2.jpg
    image_path: /assets/photos/your-project-name/photo2.jpg
    alt: "Photo 2 description"
    title: "Caption for photo 2"
  # Add more photos as needed
---

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

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

feature_row:
  # ... existing projects ...
  - image_path: /assets/photos/your-project-name/thumbnail-image.jpg
    alt: "Your Project Title"
    title: "Your Project Title"
    excerpt: "Brief description of this photo collection"
    url: "/photos/your-project-name/"
    btn_label: "View Project"
    btn_class: "btn--primary"

In your project page (gallery section), you can control how photos are displayed:

Tips

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: