mirror of https://github.com/onweru/compose.git

weru
11.53.2024 5392252575a2ebabf7d9870a392f7350de043a9d
update theme module #132
3 files modified
6 ■■■■■ changed files
exampleSite/go.mod 2 ●●● patch | view | raw | blame | history
exampleSite/go.sum 2 ●●●●● patch | view | raw | blame | history
layouts/shortcodes/gallery.html 2 ●●● patch | view | raw | blame | history
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
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=
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">