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,20 @@
|
||||
{{- /*
|
||||
A shortcode to create a card.
|
||||
|
||||
@param {string} link The link to the card.
|
||||
@param {string} title The title of the card.
|
||||
@param {string} icon The icon of the card.
|
||||
@param {string} subtitle The subtitle of the card.
|
||||
@param {string} tag The tag of the card.
|
||||
@param {string} tagType The type of the tag.
|
||||
@param {string} image The image of the card.
|
||||
@param {string} method The method to process the image.
|
||||
@param {string} options The options to process the image.
|
||||
@param {string} imageStyle The style of the image.
|
||||
|
||||
@example {{< card link="/" title="Image Card" }}
|
||||
*/ -}}
|
||||
|
||||
{{- $context := . -}}
|
||||
{{- $link := .Get "link" -}}
|
||||
{{- $title := .Get "title" -}}
|
||||
|
Reference in New Issue
Block a user