#806, fix 0.156 deprecations
This commit is contained in:
@@ -2,4 +2,5 @@ public/
|
||||
exampleSite/public/
|
||||
.DS_Store
|
||||
.hugo_build.lock
|
||||
.obsidian
|
||||
resources/
|
||||
|
||||
+3
-1
@@ -1,9 +1,11 @@
|
||||
const cacheName = self.location.pathname
|
||||
const pages = [
|
||||
{{ if eq .Site.Params.BookServiceWorker "precache" }}
|
||||
{{ range .Site.AllPages -}}
|
||||
{{ range hugo.Sites -}}
|
||||
{{ range .Pages -}}
|
||||
"{{ .RelPermalink }}",
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ range $permalink, $ok := site.Store.Get "book-sw-precache" -}}
|
||||
"{{ $permalink }}",
|
||||
{{ end -}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2 class="book-brand">
|
||||
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
|
||||
<a class="flex align-center" href="{{ cond (not .Site.Home.File) hugo.Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
|
||||
{{- with .Site.Params.BookLogo -}}
|
||||
<img src="{{ . | relURL }}" alt="{{ partial "docs/text/i18n" "Logo" }}" />
|
||||
{{- end -}}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</label>
|
||||
|
||||
<ul>
|
||||
{{ range .Site.Languages }}{{ with index $translations .Name }}
|
||||
{{ range hugo.Sites }}{{ with index $translations .Language.Name }}
|
||||
<li>
|
||||
<a href="{{ cond hugo.IsMultihost .Permalink .RelPermalink }}" class="flex flex-auto">
|
||||
{{ .Language.Label }}
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ licenselink = "https://github.com/alex-shpak/hugo-book/blob/main/LICENSE"
|
||||
description = "Hugo documentation theme as simple as plain book"
|
||||
homepage = "https://github.com/alex-shpak/hugo-book"
|
||||
demosite = "https://hugo-book-demo.netlify.app"
|
||||
tags = ["responsive", "clean", "documentation", "docs", "flexbox", "search", "mobile", "multilingual", "disqus"]
|
||||
tags = ["responsive", "clean", "documentation", "docs", "search", "mobile", "multilingual"]
|
||||
features = []
|
||||
min_version = "0.158.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user