diff options
author | matsuyoshi <sfbgwm30@gmail.com> | 2022-03-21 15:47:18 +0300 |
---|---|---|
committer | matsuyoshi <sfbgwm30@gmail.com> | 2022-03-21 15:47:18 +0300 |
commit | 728d26331b758b0b8d9f2d01640d45d184fa9176 (patch) | |
tree | 16d40445205ea811fc16bb0237f0d715af564009 | |
parent | 0d09ed0cd380c57b430f37736df6620ec0a5ab0f (diff) |
Make bottom navigation optionalbottom-navigation
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | layouts/_default/single.html | 4 |
2 files changed, 12 insertions, 1 deletions
@@ -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"> |