docs: add documentation on all shortcodes (#753)

This commit is contained in:
Ludovic Fernandez
2025-08-15 03:09:58 +02:00
committed by GitHub
parent 80ada64da0
commit 2033d50005
22 changed files with 222 additions and 6 deletions

View File

@@ -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" -}}