Skip to content

Commit ddc76d8

Browse files
committed
#806, fix 0.156 deprecations
1 parent 97d7ee4 commit ddc76d8

6 files changed

Lines changed: 9 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ public/
22
exampleSite/public/
33
.DS_Store
44
.hugo_build.lock
5+
.obsidian
56
resources/

assets/sw.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
const cacheName = self.location.pathname
22
const pages = [
33
{{ if eq .Site.Params.BookServiceWorker "precache" }}
4-
{{ range .Site.AllPages -}}
5-
"{{ .RelPermalink }}",
4+
{{ range hugo.Sites -}}
5+
{{ range .Pages -}}
6+
"{{ .RelPermalink }}",
7+
{{ end -}}
68
{{ end -}}
79
{{ range $permalink, $ok := site.Store.Get "book-sw-precache" -}}
810
"{{ $permalink }}",

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/alex-shpak/hugo-book
22

3-
go 1.16
3+
go 1.25

layouts/_partials/docs/brand.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h2 class="book-brand">
2-
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
2+
<a class="flex align-center" href="{{ cond (not .Site.Home.File) hugo.Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
33
{{- with .Site.Params.BookLogo -}}
44
<img src="{{ . | relURL }}" alt="{{ partial "docs/text/i18n" "Logo" }}" />
55
{{- end -}}

layouts/_partials/docs/languages.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</label>
2222

2323
<ul>
24-
{{ range .Site.Languages }}{{ with index $translations .Name }}
24+
{{ range hugo.Sites }}{{ with index $translations .Language.Name }}
2525
<li>
2626
<a href="{{ cond hugo.IsMultihost .Permalink .RelPermalink }}" class="flex flex-auto">
2727
{{ .Language.Label }}

theme.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ licenselink = "https://github.com/alex-shpak/hugo-book/blob/main/LICENSE"
77
description = "Hugo documentation theme as simple as plain book"
88
homepage = "https://github.com/alex-shpak/hugo-book"
99
demosite = "https://hugo-book-demo.netlify.app"
10-
tags = ["responsive", "clean", "documentation", "docs", "flexbox", "search", "mobile", "multilingual", "disqus"]
10+
tags = ["responsive", "clean", "documentation", "docs", "search", "mobile", "multilingual"]
1111
features = []
1212
min_version = "0.158.0"
1313

0 commit comments

Comments
 (0)