diff options
author | Varun Batra <codevarun@gmail.com> | 2018-05-24 08:09:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 08:09:22 +0300 |
commit | f8cd0ecd76881b2bebc834644a4b64dcfda27d23 (patch) | |
tree | 15f5d0c635d22956ccb8b71c7c6417d99ef0f845 | |
parent | 252d69a8c8ba6512c406c1fc20c4c8fd27b6cbd4 (diff) |
Add optional menu depending on config.
+ If relevant section is disabled, menu should stays hidden.
+ Relevant section title should be the text of nav bar.
-rw-r--r-- | layouts/partials/nav.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 70f75d7..bce1190 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -4,7 +4,14 @@ </a> <div class="sub-navigation"> <a href="#" class="main-navigation-link" id="about" data-scroll-goto="0">About</a> - <a href="#" class="main-navigation-link" id="process-link" data-scroll-goto="1">Process</a> - <a href="#" class="main-navigation-link" data-scroll-goto="2">Case Studies</a> + + {{ if .Site.Params.process.enable }} + <a href="#" class="main-navigation-link" data-scroll-goto="2">{{ .Site.Params.process.title }}</a> + {{end}} + + {{ if .Site.Params.case_studies.enable }} + <a href="#" class="main-navigation-link" data-scroll-goto="2">{{ .Site.Params.case_studies.title }}</a> + {{end}} + </div> -</nav>
\ No newline at end of file +</nav> |