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:
authormatsuyoshi <sfbgwm30@gmail.com>2022-03-21 15:47:18 +0300
committermatsuyoshi <sfbgwm30@gmail.com>2022-03-21 15:47:18 +0300
commit728d26331b758b0b8d9f2d01640d45d184fa9176 (patch)
tree16d40445205ea811fc16bb0237f0d715af564009
parent0d09ed0cd380c57b430f37736df6620ec0a5ab0f (diff)
Make bottom navigation optionalbottom-navigation
-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">