From 2d3406460af1225f4bddc556970b0617e7edcfc7 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:11:14 -0400 Subject: [PATCH] Tweak creative projects page --- _includes/custom-gallery | 50 ++++++++++++++++++++++------------- _pages/creative-projects.html | 4 +++ _pages/photo-a-day.html | 7 +++-- assets/css/custom-gallery.css | 21 +++++++++++++++ 4 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 assets/css/custom-gallery.css diff --git a/_includes/custom-gallery b/_includes/custom-gallery index 0433545..14146e2 100644 --- a/_includes/custom-gallery +++ b/_includes/custom-gallery @@ -5,30 +5,44 @@ assign gallery_layout = 'half' %} {% elsif gallery.size >= 3 %} {% assign gallery_layout = 'third' %} {% else %} {% assign gallery_layout = '' %} {% endif %} {% endif %} + {% for img in gallery %} {% if img.url %} - + + + + + + {{ img.caption }} + + + {{ img.description }} + + + + {% else %} + + - - - {% else %} - - + {% endif %} {% endfor %} {% if include.caption %} diff --git a/_pages/creative-projects.html b/_pages/creative-projects.html index 5edfb19..5b6396f 100644 --- a/_pages/creative-projects.html +++ b/_pages/creative-projects.html @@ -6,18 +6,22 @@ - url: https://www.instagram.com/ebethme image_path: /assets/blog-post-assets/creative-gallery-thumbnails/insta-photo-latest.jpg alt: "photo of a computer screen with radio signals" + open-in-new-tab: true title: "Photos from Instagram, ongoing" caption: "Photos from Instagram, ongoing" - url: https://www.instagram.com/ebethme_daily image_path: /assets/blog-post-assets/creative-gallery-thumbnails/50-days-of-yoga-cropped.jpg alt: "long exposure photo of lights during yoga" + open-in-new-tab: true title: "50 Days of Yoga @ebethme_daily, early 2023" caption: "50 Days of Yoga @ebethme_daily, early 2023" + description: "In early 2023 I captured my daily yoga practice via creative computing and long exposure photography." - url: /photo-a-day.html image_path: /assets/blog-post-assets/creative-gallery-thumbnails/photo-a-day-2-12.jpg alt: "photo of ice on the Chicago River" title: "Photo-a-day project, 2018" caption: "Photo-a-day project, 2018" + description: "I took a photo nearly every day in 2018, capturing moments from my daily life." --- diff --git a/_pages/photo-a-day.html b/_pages/photo-a-day.html index f8e10f8..a426305 100644 --- a/_pages/photo-a-day.html +++ b/_pages/photo-a-day.html @@ -5,7 +5,7 @@ - url: /photos/photo-a-day-title.png image_path: /photos/photo-a-day-title.png alt: "photo a day - 2018" - title: "" + title: "2018 Photo-a-day" - url: /photos/1-1.jpeg image_path: /photos/1-1.jpeg alt: "January 1, 2018" @@ -1453,7 +1453,10 @@ title: "" --- + + + - 2018 photo-a-day + 2018 Photo-a-day {% include gallery %} diff --git a/assets/css/custom-gallery.css b/assets/css/custom-gallery.css new file mode 100644 index 0000000..667f912 --- /dev/null +++ b/assets/css/custom-gallery.css @@ -0,0 +1,21 @@ +@media (min-width: 37.5em) { + figure.third > a, + figure.third > img, + figure.third > div { + width: calc(33.3333% - 0.5em); + } +} + +div.caption { + padding-right: 0.25em; + padding-left: 0.25em; + font-size: 0.75em; + font-style: italic; +} + +div.description { + padding-top: 0.25em; + padding-right: 0.25em; + padding-left: 0.25em; + font-size: 0.65em; +} \ No newline at end of file