Skip to content

Commit

Permalink
Fix some more deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 10, 2024
1 parent 09d6611 commit ef635d5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
4 changes: 4 additions & 0 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand All @@ -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=
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="{{ site.Language.LanguageCode }}">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/galleriesdeluxe/get-gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ef635d5

Please sign in to comment.