+ {{ if site.Params.docs.descriptions | default false }}
+
+ {{ end }}
{{ block "main" . }}{{ end }}
diff --git a/docSite/layouts/partials/docs/gitinfo.html b/docSite/layouts/partials/docs/gitinfo.html
index 380560274..15ed533a5 100644
--- a/docSite/layouts/partials/docs/gitinfo.html
+++ b/docSite/layouts/partials/docs/gitinfo.html
@@ -14,10 +14,12 @@
{{ $iconPath = "images/social/bitbucket_icon.svg" }}
{{ end }}
+
{{ $repoURL = $repoURL | append "docSite/content" .Site.LanguagePrefix $filePath }}
{{ $repoURL = delimit $repoURL "/" }}
{{ $editPageURL := replaceRE "(https?://)|(/)+" "$1$2" $repoURL }}
+
{{ if .Site.Params.docs.editPage | default false -}}
@@ -28,7 +30,7 @@
{{ .Content | safeHTML }}
{{ end }}
- {{ i18n "edit_page" }}
+ {{ i18n "edit_page" }}
diff --git a/docSite/layouts/partials/docs/head.html b/docSite/layouts/partials/docs/head.html
index 47b5cc422..263c85f9e 100644
--- a/docSite/layouts/partials/docs/head.html
+++ b/docSite/layouts/partials/docs/head.html
@@ -1,76 +1,105 @@
-
-
- {{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{- if eq $url "/" }} {{-
- .Site.Title }} {{- else }} {{- if .Params.heading }} {{ .Params.heading }} {{ else }} {{- if eq
- .Title .Site.Title }} {{- .Title }} {{- else }} {{ .Site.Params.docs.Title | default
- (.Site.Title) }} | {{ .Title }} {{- end }} {{- end }} {{- end -}}
-
- {{- if not hugo.IsProduction }}
-
- {{- end }}
-
-
-
-
-
-
-
-
- {{ block "favicon" . }}{{ partialCached (printf "%s/%s" ($.Scratch.Get "pathName")
- "head/favicon.html") . }}{{ end }}
-
- {{ if eq .Site.Params.docs.darkMode true -}} {{ $darkModeInit := resources.Get (printf "/%s/%s"
- ($.Scratch.Get "pathName") "js/darkmode-init.js") | js.Build | minify -}}
-
- {{ end -}}
-
- {{ if or (not (isset .Site.Params.flexsearch "enabled")) (eq .Site.Params.flexsearch.enabled true)
- -}} {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}} {{ else }} {{
- $flexSearch := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName")
- "js/flexsearch.bundle.js") }} {{- if not .Site.IsServer }} {{ $flexSearch := $flexSearch | minify
- | fingerprint "sha384" }}
-
- {{ else }}
-
- {{ end }} {{ end }} {{ end }}
-
- {{- partialCached "google-fonts" . }}
-
- {{- $options := dict "enableSourceMap" true }} {{- if hugo.IsProduction}} {{- $options := dict
- "enableSourceMap" false "outputStyle" "compressed" }} {{- end }} {{- $style := resources.Get
- (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") }} {{- $style = $style |
- resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") . |
- resources.ToCSS $options }} {{- if hugo.IsProduction }} {{- $style = $style | minify | fingerprint
- "sha384" }} {{- end -}}
-
-
- {{- if not .Site.IsServer }} {{ if and (.Site.Params.plausible.scriptURL | default
- "https://plausible.io") (.Site.Params.plausible.dataDomain) -}} {{- partialCached (printf "%s/%s"
- ($.Scratch.Get "pathName") "head/plausible") . }} {{- end -}} {{- end -}}
-
- {{- if not .Site.IsServer }} {{- if .Site.GoogleAnalytics }} {{- template
- "_internal/google_analytics.html" . -}} {{- end -}} {{- end -}}
-
+
+
+ {{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
+ {{- if eq $url "/" }}
+ {{- .Site.Title }}
+ {{- else }}
+ {{- if .Params.heading }}
+ {{ .Params.heading }}
+ {{ else }}
+ {{- if eq .Title .Site.Title }}
+ {{- .Title }}
+ {{- else }}
+ {{- .Title }} | {{ .Site.Params.docs.Title | default (.Site.Title) }}
+ {{- end }}
+ {{- end }}
+ {{- end -}}
+
+ {{- if not hugo.IsProduction }}
+
+ {{- end }}
+
+ {{- with .Description | default ($.Param "description") }}
+
+ {{- end }}
+
+
+
+
+
+
+ {{ block "favicon" . }}{{ partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "head/favicon.html") . }}{{ end }}
+
+ {{ if eq .Site.Params.docs.darkMode true -}}
+ {{ $darkModeInit := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/darkmode-init.js") | js.Build | minify -}}
+
+ {{ end -}}
+
+ {{ if or (not (isset .Site.Params.flexsearch "enabled")) (eq .Site.Params.flexsearch.enabled true) -}}
+ {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}}
+ {{ else }}
+ {{ $flexSearch := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/flexsearch.bundle.js") }}
+ {{- if not .Site.IsServer }}
+ {{ $flexSearch := $flexSearch | minify | fingerprint "sha384" }}
+
+ {{ else }}
+
+ {{ end }}
+ {{ end }}
+ {{ end }}
+
+ {{- partialCached "google-fonts" . }}
+
+ {{- $options := dict "enableSourceMap" true }}
+ {{- if hugo.IsProduction}}
+ {{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }}
+ {{- end }}
+ {{- $style := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") }}
+ {{- $style = $style | resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/style.scss") . | resources.ToCSS $options }}
+ {{- if hugo.IsProduction }}
+ {{- $style = $style | minify | fingerprint "sha384" }}
+ {{- end -}}
+
+
+ {{- if .Params.katex -}}
+ {{- $options := dict "enableSourceMap" true }}
+ {{- if hugo.IsProduction}}
+ {{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }}
+ {{- end -}}
+ {{- $katexCSS := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/katex.scss") }}
+ {{- $katexCSS = $katexCSS | resources.ExecuteAsTemplate (printf "/%s/%s" ($.Scratch.Get "pathName") "scss/katex.scss") . | resources.ToCSS $options }}
+ {{- if hugo.IsProduction }}
+ {{- $katexCSS = $katexCSS | minify | fingerprint "sha384" }}
+ {{- end -}}
+
+ {{- end -}}
+
+ {{- if .Params.katex -}}
+ {{ $katex := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/katex.js") }}
+ {{ $katexAutoRender := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/auto-render.js") }}
+ {{ if hugo.IsProduction }}
+ {{ $katex = $katex | minify | fingerprint "sha384" }}
+ {{ $katexAutoRender = $katexAutoRender | minify | fingerprint "sha384" }}
+ {{- end -}}
+
+
+ {{ end -}}
+
+
+ {{ if .Params.katex }}
+ {{- partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "footer/katex.html") . -}}
+ {{ end }}
+
+ {{- if not .Site.IsServer }}
+ {{ if and (.Site.Params.plausible.scriptURL | default "https://plausible.io") (.Site.Params.plausible.dataDomain) -}}
+ {{- partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "head/plausible") . }}
+ {{- end -}}
+ {{- end -}}
+
+ {{- if not .Site.IsServer }}
+ {{- if .Site.GoogleAnalytics }}
+ {{- template "_internal/google_analytics.html" . -}}
+ {{- end -}}
+ {{- end -}}
+
\ No newline at end of file
diff --git a/docSite/layouts/partials/docs/toc.html b/docSite/layouts/partials/docs/toc.html
index 053b97c78..0f9c7d542 100644
--- a/docSite/layouts/partials/docs/toc.html
+++ b/docSite/layouts/partials/docs/toc.html
@@ -1,4 +1,5 @@
+
{{ .Title }}
{{ if eq .Site.Params.docs.scrollSpy true -}}
{{ .TableOfContents | replaceRE "