#806, fix 0.156 deprecations

This commit is contained in:
Alex Shpak
2026-04-23 16:29:12 +02:00
parent 97d7ee40ed
commit ddc76d8885
6 changed files with 9 additions and 6 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
const cacheName = self.location.pathname
const pages = [
{{ if eq .Site.Params.BookServiceWorker "precache" }}
{{ range .Site.AllPages -}}
"{{ .RelPermalink }}",
{{ range hugo.Sites -}}
{{ range .Pages -}}
"{{ .RelPermalink }}",
{{ end -}}
{{ end -}}
{{ range $permalink, $ok := site.Store.Get "book-sw-precache" -}}
"{{ $permalink }}",