From 5392252575a2ebabf7d9870a392f7350de043a9d Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Thu, 11 Jan 2024 17:53:53 +0000
Subject: [PATCH] update theme module #132

---
 layouts/shortcodes/gallery.html |    2 +-
 exampleSite/go.mod              |    2 +-
 exampleSite/go.sum              |    2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/exampleSite/go.mod b/exampleSite/go.mod
index 02fe7a0..c62a3cf 100644
--- a/exampleSite/go.mod
+++ b/exampleSite/go.mod
@@ -2,4 +2,4 @@
 
 go 1.19
 
-require github.com/onweru/compose v0.0.0-20230823103345-61fa78130dec // indirect
+require github.com/onweru/compose v0.0.0-20240111174942-cdf2ef5f4da1 // indirect
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index 995e2d7..bd0227e 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -14,3 +14,5 @@
 github.com/onweru/compose v0.0.0-20230817095514-20a7d0ddbfcb/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
 github.com/onweru/compose v0.0.0-20230823103345-61fa78130dec h1:8iFU5Cf76/ww5+gLyyRrI7dpJpcKmnpBXtraIIq4AT0=
 github.com/onweru/compose v0.0.0-20230823103345-61fa78130dec/go.mod h1:2eSBLsKzvKf3r4/vHiKdakIBqDtWACDAqAD7tRdt00o=
+github.com/onweru/compose v0.0.0-20240111174942-cdf2ef5f4da1 h1:evqwOllx6XwfmYG2NKGFmfloNQXazxOCPir914Myjpk=
+github.com/onweru/compose v0.0.0-20240111174942-cdf2ef5f4da1/go.mod h1:2eSBLsKzvKf3r4/vHiKdakIBqDtWACDAqAD7tRdt00o=
diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html
index 6413cbb..ce8a522 100644
--- a/layouts/shortcodes/gallery.html
+++ b/layouts/shortcodes/gallery.html
@@ -2,7 +2,7 @@
 {{- $descriptions := split (replace (.Get 1) ":: " "::") "::" }}
 <div class="gallery">
   {{- range $index, $image := $images }}
-    {{- if eq ((strings.Contains $image "https://") || (strings.Contains $image "http://")) true }}
+    {{- if eq (or (strings.Contains $image "https://") (strings.Contains $image "http://")) true }}
       {{- $image = absURL $image }}
     {{- end }} 
     <figure class="gallery_item">

--
Gitblit v1.10.0