Skip to content

Commit fae96c2

Browse files
fekete-robertchalin
authored andcommitted
Adds documentation
1 parent 44684d2 commit fae96c2

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
@@ -244,6 +244,33 @@ of the following:
244244
[wordmark]: https://en.wikipedia.org/wiki/Wordmark
245245
[your logo]: /docs/adding-content/iconsimages/#add-your-logo
246246

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

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

0 commit comments

Comments
 (0)