Commit fae96c2 1 parent 44684d2 commit fae96c2 Copy full SHA for fae96c2
File tree 1 file changed +27
-0
lines changed
userguide/content/en/docs/adding-content
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,33 @@ of the following:
244
244
[wordmark ]: https://en.wikipedia .org/wiki/Wordmark
245
245
[your logo ]: /docs/adding-content /iconsimages/#add-your-logo
246
246
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
+
247
274
## Tables
248
275
249
276
Docsy applies the following styles to all tables, through the class `.td-table` :
You can’t perform that action at this time.
0 commit comments