diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 0d02e87..a77c327 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -6,6 +6,6 @@ replace github.com/bep/galleriesdeluxe => ../ require ( github.com/bep/galleriesdeluxe v0.0.0-20230703155916-942ecbaaea2f // indirect - github.com/bep/gallerydeluxe v0.10.0 // indirect - github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704170958-135885e57221 // indirect + github.com/bep/gallerydeluxe v0.12.0 // indirect + github.com/bep/hugo-mod-misc/common-partials v0.1.0 // indirect ) diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 5aee919..05ee461 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -1,5 +1,7 @@ github.com/bep/gallerydeluxe v0.10.0 h1:0CXOArpCD6S0XdhFpXuShnlqx8VJBCrWhKdgi/xdRjE= github.com/bep/gallerydeluxe v0.10.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8= +github.com/bep/gallerydeluxe v0.12.0 h1:Sb6I9WYitsNdgHyS8xxTLUzNpSrUeE9Ihwh1RGmgeEc= +github.com/bep/gallerydeluxe v0.12.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8= github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704093825-0324b29fc581 h1:jC5eaVLYbNgoWRoufZY4DaP+nCPfE07nmAMKN0Bsqhk= github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704093825-0324b29fc581/go.mod h1:lw2586uqPfye9yTYgSyvZwU3dfpZcjDXmIOJeR4D6O0= github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704102517-ce194ee16770 h1:fF16cczTlWC0sKkflkcp6eQmve0UAU9e+LhGP2w7jWI= @@ -8,3 +10,5 @@ github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704103809-4f6830d6af54 github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704103809-4f6830d6af54/go.mod h1:lw2586uqPfye9yTYgSyvZwU3dfpZcjDXmIOJeR4D6O0= github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704170958-135885e57221 h1:TlXyw76Uqh20FwHmwPzpctDkWELF4PTOLaAJvqHY8ME= github.com/bep/hugo-mod-misc/common-partials v0.0.0-20230704170958-135885e57221/go.mod h1:lw2586uqPfye9yTYgSyvZwU3dfpZcjDXmIOJeR4D6O0= +github.com/bep/hugo-mod-misc/common-partials v0.1.0 h1:SiGnrf9MW1aFczXpXPTDpsGr3SvimIaBXMpZucPxT+g= +github.com/bep/hugo-mod-misc/common-partials v0.1.0/go.mod h1:lw2586uqPfye9yTYgSyvZwU3dfpZcjDXmIOJeR4D6O0= diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4873f6d..e331ef5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,4 @@ - + @@ -35,7 +35,7 @@ {{ $options = $options | merge (dict "enableSourceMap" false "outputStyle" "compressed") }} {{ end }} {{ $styles := resources.Get "scss/galleriesdeluxe/styles.scss" }} - {{ $styles = $styles | resources.ToCSS $options }} + {{ $styles = $styles | css.Sass $options }} {{ if hugo.IsProduction }} {{ $styles = $styles | fingerprint }} {{ end }} diff --git a/layouts/partials/galleriesdeluxe/get-gallery.html b/layouts/partials/galleriesdeluxe/get-gallery.html index 1a476a6..ee88d6e 100644 --- a/layouts/partials/galleriesdeluxe/get-gallery.html +++ b/layouts/partials/galleriesdeluxe/get-gallery.html @@ -10,7 +10,7 @@ {{ end }} {{ with $images }} - {{ $id := $.RelPermalink | crypto.FNV32a }} + {{ $id := $.RelPermalink | hash.FNV32a }} {{ $idx := mod $id (len $images) }} {{ $first := index $images $idx }} {{ $thumb := $first.Fill "400x264 smart" }} diff --git a/theme.toml b/theme.toml index f7a0a06..9a7d450 100644 --- a/theme.toml +++ b/theme.toml @@ -6,7 +6,7 @@ description = "Multi gallery theme suitable for large galleries." homepage = "https://github.com/bep/galleriesdeluxe" demosite = "https://galleriesdeluxe.netlify.app/" tags = ["Gallery", "Responsive"] -min_version = "0.90.0" +min_version = "0.129.0" [author] name = "Bjørn Erik Pedersen" homepage = "http://bep.is"