From 14e3a3778051d78c8075005767729cf2eab3527b Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Wed, 17 May 2023 10:43:38 +0200 Subject: [PATCH] Adds a navbar placeholder for a call to action --- layouts/partials/navbar-cta.html | 6 ++++++ layouts/partials/navbar.html | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 layouts/partials/navbar-cta.html diff --git a/layouts/partials/navbar-cta.html b/layouts/partials/navbar-cta.html new file mode 100644 index 0000000000..4ef8493e1d --- /dev/null +++ b/layouts/partials/navbar-cta.html @@ -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. */}} + \ No newline at end of file diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 3b04821b76..0bbed82161 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -57,6 +57,11 @@ {{ partial "navbar-lang-selector.html" . -}} {{ end -}} + {{ if .Site.Params.navbar_cta }} + + {{ end }}