From d34abd4877e79876b50e3c7cc316e14ba6155558 Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Mon, 1 Jul 2024 20:19:12 -0400 Subject: [PATCH] try this one. --- _layouts/gallery_page.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_layouts/gallery_page.html b/_layouts/gallery_page.html index ef63f69..425fbf1 100644 --- a/_layouts/gallery_page.html +++ b/_layouts/gallery_page.html @@ -36,8 +36,7 @@ width="{{ image[1] | divided_by: site.gallery.thumbnail_size.retina }}" height="{{ site.gallery.thumbnail_size.y | divided_by: site.gallery.thumbnail_size.retina }}" /> - {% assign image_root = "/usr/local/jekyll/sites/photos.kameronkenny.com/_site/photos/san_francisco/" } - {% assign image_path = image_root.concat(image[0]) %} + {% assign image_path = "{page.path.split('/index.html')[0]}/#{image[0]}" } {% capture has_exif %}{{ image_path | exif: "exif?" }}{% endcapture %} {% if has_exif %} Camera: {{ image_path | exif: 'model' }}