Commit c8c91a3 1 parent 14e3a37 commit c8c91a3 Copy full SHA for c8c91a3
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 @@ -239,6 +239,33 @@ of the following:
239
239
[wordmark ]: https://en.wikipedia .org/wiki/Wordmark
240
240
[your logo ]: /docs/adding-content /iconsimages/#add-your-logo
241
241
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
+
242
269
## Tables
243
270
244
271
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