Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdevo <kdevo@users.noreply.github.com>2021-03-28 16:39:33 +0300
committerkdevo <kdevo@users.noreply.github.com>2021-03-28 16:39:33 +0300
commit3d7d081401375371bcd969e51b5f6df24b79c909 (patch)
tree77aa29395947bd09f57089a0331d5956282ad5fe
parent9738a9e11077fd151b5fec6608a9a6b44aa8a5e3 (diff)
:recycle: Made handleNavBar call explicit
-rw-r--r--layouts/partials/body-bottom.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/layouts/partials/body-bottom.html b/layouts/partials/body-bottom.html
index ad633f4..c857129 100644
--- a/layouts/partials/body-bottom.html
+++ b/layouts/partials/body-bottom.html
@@ -13,12 +13,19 @@
{{ if .Site.Params.Feat.useBlog -}}
<!-- If using the blog, it is probably worth it to serve a fingerprinted bundle (more page navigations/reloads) -->
<script src="{{ ($scripts | resources.Concat "js/bundle.js" | minify | fingerprint).Permalink }}" type="text/javascript"></script>
- <script>handleNavBar({{ .IsHome }})</script>
+ {{ if .IsHome -}}
+ <script>handleNavBar(true)</script>
+ {{- else -}}
+ <script>handleNavBar(false)</script>
+ {{- end }}
{{- else -}}
<!-- If not using the blog at all, serving the JS inline will reduce the request count and is probably the best option -->
<script>
- {{/* (resources.Get "js/src/nav.js" | js.Build "nav.js").Content | safeJS */}}
{{ ($scripts | resources.Concat "js/bundle.js" | minify).Content | safeJS }}
- handleNavBar({{ .IsHome }})
+ {{ if .IsHome -}}
+ handleNavBar(true)
+ {{- else -}}
+ handleNavBar(false)
+ {{- end }}
</script>
{{- end }}