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

github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rw-r--r--layouts/_default/single.html4
2 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 09f8664..2ca1d1d 100644
--- a/README.md
+++ b/README.md
@@ -183,6 +183,15 @@ uglyurls = true
uglyurls = true
```
+### Enable Bottom Navigation
+
+If you want to enable bottom navigation in , add `enableBottomNavigation = true` params to your config.toml.
+
+```
+[params]
+ enableBottomNavigation = true
+```
+
## Frontmatter example
```
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7bf379e..c3e7080 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,7 +14,9 @@
</div>
{{ end }}
- {{ partial "bottomnav.html" . }}
+ {{ if .Site.Params.enableBottomNavigation }}
+ {{ partial "bottomnav.html" . }}
+ {{ end }}
</article>
{{ if and (gt .WordCount 400) (.Param "backtotop") }}
<button onclick="topFunction()" id="backtotopButton">