Skip to content

Commit 2f5f531

Browse files
committed
fix: update lotus-docs module
1 parent fa39b1f commit 2f5f531

File tree

4 files changed

+16
-47
lines changed

4 files changed

+16
-47
lines changed

go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
module github.com/skkuding/cookbook
22

3-
go 1.20
3+
go 1.21
4+
5+
toolchain go1.24.4
46

57
require (
6-
github.com/colinwilson/lotusdocs v0.1.0 // indirect
7-
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200 // indirect
8+
github.com/colinwilson/lotusdocs v0.2.0 // indirect
9+
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20400 // indirect
810
)

go.sum

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
github.com/colinwilson/lotusdocs v0.1.0 h1:oTC8pAYQp9XDNaUwE4SEY+id3ByNELxIIFrktYEGxYA=
2-
github.com/colinwilson/lotusdocs v0.1.0/go.mod h1:9zu2REJDi+zdPRcR5/bRYSUR7gkNF4NQLvV38SEoCP8=
3-
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200 h1:SmpwwN3DNzJWbV+IT8gaFu07ENUFpCvKou5BHYUKuVs=
4-
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200/go.mod h1:kx8MBj9T7SFR8ZClWvKZPmmUxBaltkoXvnWlZZcSnYA=
1+
github.com/colinwilson/lotusdocs v0.2.0 h1:vG/frwOUKPRpF3xuXk177Pw73aFrFcT2zRgTI9FiiMY=
2+
github.com/colinwilson/lotusdocs v0.2.0/go.mod h1:hGOYA9Ym3MA3YGmm9YHo9HkJxlHCyPNaYeFwvn/IFJY=
3+
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20400 h1:L6+F22i76xmeWWwrtijAhUbf3BiRLmpO5j34bgl1ggU=
4+
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20400/go.mod h1:uekq1D4ebeXgduLj8VIZy8TgfTjrLdSl6nPtVczso78=
55
github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000/go.mod h1:mFberT6ZtcchrsDtfvJM7aAH2bDKLdOnruUHl0hlapI=
6-
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
6+
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

layouts/docs/single.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

layouts/partials/head.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }}
2424
{{- end }}
2525
{{- $style := resources.Get "/scss/style.scss" }}
26-
{{- $style = $style | resources.ExecuteAsTemplate "/scss/style.scss" . | resources.ToCSS $options }}
26+
{{- $style = $style | resources.ExecuteAsTemplate "/scss/style.scss" . | css.Sass $options }}
2727
{{- if hugo.IsProduction }}
2828
{{- $style = $style | minify | fingerprint "sha384" }}
2929
{{- end -}}
@@ -39,9 +39,9 @@
3939
{{ end }}
4040
<script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end -}} defer></script>
4141
<!-- Image Compare Viewer -->
42-
{{ if .Site.Data.landing.image_compare.enable }}
42+
{{ if ($.Scratch.Get "image_compare_enabled") }}
4343
{{ $imagecompare := resources.Get "js/image-compare-viewer.min.js" }}
44-
{{- if not .Site.IsServer }}
44+
{{- if not hugo.IsServer }}
4545
{{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" | minify | fingerprint "sha384" }}
4646
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
4747
{{- else }}
@@ -50,14 +50,14 @@
5050
{{- end }}
5151
{{- end }}
5252
<!-- Plausible Analytics Config -->
53-
{{- if not .Site.IsServer }}
53+
{{- if not hugo.IsServer }}
5454
{{ if and (.Site.Params.plausible.scriptURL) (.Site.Params.plausible.dataDomain) -}}
5555
{{- partialCached "head/plausible" . }}
5656
{{- end -}}
5757
{{- end -}}
5858
<!-- Google Analytics v4 Config -->
59-
{{- if not .Site.IsServer }}
60-
{{- if .Site.GoogleAnalytics }}
59+
{{- if not hugo.IsServer }}
60+
{{- if .Site.Config.Services.GoogleAnalytics.ID }}
6161
{{- template "_internal/google_analytics.html" . -}}
6262
{{- end -}}
6363
{{- end -}}

0 commit comments

Comments
 (0)