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

committed by
GitHub

parent
80ada64da0
commit
2033d50005
@@ -1,3 +1,12 @@
|
||||
{{- /*
|
||||
A built-in component to display a collapsible content.
|
||||
|
||||
@param {string} title The title of the details.
|
||||
@param {string} closed Whether the details are closed or not (default: false).
|
||||
|
||||
@example {{% details title="Details" %}}Content{{% /details %}}
|
||||
*/ -}}
|
||||
|
||||
{{- $title := .Get "title" | default "" -}}
|
||||
{{- $closed := eq (.Get "closed") "true" | default false -}}
|
||||
|
||||
|
Reference in New Issue
Block a user