Skip to content

Commit c8c91a3

Browse files
committed
Adds documentation
1 parent 14e3a37 commit c8c91a3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

userguide/content/en/docs/adding-content/lookandfeel.md

+27
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,33 @@ of the following:
239239
[wordmark]: https://en.wikipedia.org/wiki/Wordmark
240240
[your logo]: /docs/adding-content/iconsimages/#add-your-logo
241241

242+
### Adding a call-to-action
243+
244+
You can include a call-to-action, like a sign-up or download button to the right side of the navbar.
245+
246+
1. In your Hugo configuration file, set the `navbar_cta` parameter to true.
247+
248+
{{< tabpane persistLang=false >}}
249+
{{< tab header="Configuration file:" disabled=true />}}
250+
{{< tab header="hugo.toml" lang="toml" >}}
251+
[params]
252+
navbar_cta = true
253+
{{< /tab >}}
254+
{{< tab header="hugo.yaml" lang="yaml" >}}
255+
params:
256+
navbar_cta: true
257+
{{< /tab >}}
258+
{{< tab header="hugo.json" lang="json" >}}
259+
{
260+
"params": {
261+
"navbar_cta": true
262+
}
263+
}
264+
{{< /tab >}}
265+
{{< /tabpane >}}
266+
267+
1. Add the `layouts/partials/navbar-cta.html` file to your project and customize it as needed.
268+
242269
## Tables
243270

244271
Docsy applies the following styles to all tables, through the class `.td-table`:

0 commit comments

Comments
 (0)