mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 16:36:44 -04:00
docs: add documentation on all shortcodes (#753)
This commit is contained in:

committed by
GitHub

parent
80ada64da0
commit
2033d50005
@@ -1,3 +1,13 @@
|
||||
{{- /*
|
||||
A shortcode for rendering a button with a link.
|
||||
|
||||
@param {string} link The link of the button.
|
||||
@param {string} text The text of the button.
|
||||
@param {string} style The style of the button.
|
||||
|
||||
@example {{< hextra/hero-button text="Get Started" link="docs" >}}
|
||||
*/ -}}
|
||||
|
||||
{{- $link := .Get "link" -}}
|
||||
{{- $text := .Get "text" -}}
|
||||
{{- $style := .Get "style" -}}
|
||||
|
Reference in New Issue
Block a user