Skip to content

Commit

Permalink
Adds a navbar placeholder for a call to action
Browse files Browse the repository at this point in the history
  • Loading branch information
fekete-robert committed May 17, 2023
1 parent 13db293 commit 14e3a37
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/partials/navbar-cta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{/* Placeholder file to override. Used to add a call to action (like a colored Sign Up button) to the right side of the navigation bar if the navbar_cta parameter is set in the config file. */}}
<!--
<a class="btn btn-lg btn-secondary me-3 mb-4" href="https://github.com/google/docsy">
Download <i class="fa-brands fa-github ms-2 "></i>
</a>
-->
5 changes: 5 additions & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
{{ partial "navbar-lang-selector.html" . -}}
</li>
{{ end -}}
{{ if .Site.Params.navbar_cta }}
<li class="nav-item nav-cta mr-4 d-none d-lg-block">
{{ partial "navbar-cta.html" . }}
</li>
{{ end }}
</ul>
</div>
<div class="d-none d-lg-block">
Expand Down

0 comments on commit 14e3a37

Please sign in to comment.