diff options
-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"> |