From 9a795588143ecbd2d6fc6d5731f2838995877717 Mon Sep 17 00:00:00 2001 From: rzen Date: Sun, 6 Sep 2020 22:09:23 -0400 Subject: [PATCH] add galleries --- _blog/example.md | 8 ++- _includes/footer.html | 3 +- _includes/gallery.html | 28 +++++++-- _sass/_isabelline.scss | 40 +++++++++++-- assets/.DS_Store | Bin 14340 -> 14340 bytes .../example/gallery/1/lanius_isabellinus1.jpg | Bin 0 -> 837303 bytes .../gallery2/Quarter_Horse_Buckskin.jpg | Bin 0 -> 4056016 bytes .../dusan-smetana-ah7KHxYg6Ow-unsplash.jpg | Bin 0 -> 3126768 bytes .../jay-ruzesky-h13Y8vyIXNU-unsplash.jpg | Bin 0 -> 2590083 bytes assets/js/gallery.js | 54 ++++++++++++++++++ 10 files changed, 120 insertions(+), 13 deletions(-) create mode 100644 assets/blog/example/gallery/1/lanius_isabellinus1.jpg create mode 100644 assets/blog/example/gallery2/Quarter_Horse_Buckskin.jpg create mode 100644 assets/blog/example/gallery2/dusan-smetana-ah7KHxYg6Ow-unsplash.jpg create mode 100644 assets/blog/example/gallery2/jay-ruzesky-h13Y8vyIXNU-unsplash.jpg create mode 100644 assets/js/gallery.js diff --git a/_blog/example.md b/_blog/example.md index da7819b..2672bd1 100644 --- a/_blog/example.md +++ b/_blog/example.md @@ -28,9 +28,13 @@ Morbi orci diam, semper et mauris quis, maximus luctus mi. Morbi vel eros dolor. -Morbi orci diam, semper et mauris quis, maximus luctus mi. Morbi vel eros dolor. Suspendisse vitae dapibus leo, eget imperdiet dui. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed vitae dictum massa. Nulla facilisi. Sed aliquet, orci a dignissim lobortis, libero justo elementum mi, id tincidunt justo orci elementum ligula. Pellentesque viverra quam nec diam faucibus sodales. In massa erat, sagittis a eros quis, aliquet volutpat ex. Morbi semper dictum turpis, in ornare metus consequat ac. Praesent vehicula risus id mi sollicitudin rutrum et nec dui. +Morbi orci diam, semper et mauris quis, maximus luctus mi. Morbi vel eros dolor. Suspendisse vitae dapibus leo, eget imperdiet dui. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. -{% include gallery.html dir="/isabelline/assets/blog/example/gallery" images="Lanius_isabellinus1.jpg|dusan-smetana-ah7KHxYg6Ow-unsplash.jpg|jay-ruzesky-h13Y8vyIXNU-unsplash.jpg|maurits-bausenhart-OkYjLpB2gzA-unsplash.jpg|sneaky-elbow-h00rqvO5A-M-unsplash.jpg" thumbnails="Lanius_isabellinus1.jpg|dusan-smetana-ah7KHxYg6Ow-unsplash.jpg|jay-ruzesky-h13Y8vyIXNU-unsplash.jpg|maurits-bausenhart-OkYjLpB2gzA-unsplash.jpg|sneaky-elbow-h00rqvO5A-M-unsplash.jpg" %} +{% include gallery.html name="gallery2" %} + +Sed vitae dictum massa. Nulla facilisi. Sed aliquet, orci a dignissim lobortis, libero justo elementum mi, id tincidunt justo orci elementum ligula. Pellentesque viverra quam nec diam faucibus sodales. In massa erat, sagittis a eros quis, aliquet volutpat ex. Morbi semper dictum turpis, in ornare metus consequat ac. Praesent vehicula risus id mi sollicitudin rutrum et nec dui. + +{% include gallery.html name="gallery" %} Morbi orci diam, semper et mauris quis, maximus luctus mi. Morbi vel eros dolor. Suspendisse vitae dapibus leo, eget imperdiet dui. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed vitae dictum massa. Nulla facilisi. Sed aliquet, orci a dignissim lobortis, libero justo elementum mi, id tincidunt justo orci elementum ligula. Pellentesque viverra quam nec diam faucibus sodales. In massa erat, sagittis a eros quis, aliquet volutpat ex. Morbi semper dictum turpis, in ornare metus consequat ac. Praesent vehicula risus id mi sollicitudin rutrum et nec dui. diff --git a/_includes/footer.html b/_includes/footer.html index aee692b..923304c 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -28,4 +28,5 @@
Loading...
- \ No newline at end of file + + \ No newline at end of file diff --git a/_includes/gallery.html b/_includes/gallery.html index ccbb67c..ce41c6d 100644 --- a/_includes/gallery.html +++ b/_includes/gallery.html @@ -1,8 +1,24 @@ -{% assign images = (include.images | split: "|") %} -{% assign thumbnails = (include.thumbnails | split: "|") %} +{% assign gallery_name = include.name | default: "gallery" %} -