From 728d26331b758b0b8d9f2d01640d45d184fa9176 Mon Sep 17 00:00:00 2001 From: matsuyoshi Date: Mon, 21 Mar 2022 21:47:18 +0900 Subject: Make bottom navigation optional --- README.md | 9 +++++++++ layouts/_default/single.html | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 @@ {{ end }} - {{ partial "bottomnav.html" . }} + {{ if .Site.Params.enableBottomNavigation }} + {{ partial "bottomnav.html" . }} + {{ end }} {{ if and (gt .WordCount 400) (.Param "backtotop") }}