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,17 @@
|
||||
{{- /*
|
||||
Create an icon.
|
||||
|
||||
@param {string} name The name of the icon.
|
||||
@param {string} attributes The attributes of the icon.
|
||||
|
||||
or
|
||||
|
||||
@param {string} 0 The name of the icon.
|
||||
|
||||
@example {{< icon name="github" >}}
|
||||
@example {{< icon "github" >}}
|
||||
*/ -}}
|
||||
|
||||
{{- $name := .Get "name" | default (.Get 0) -}}
|
||||
{{- $icon := index site.Data.icons $name -}}
|
||||
{{- $attributes := .Get "attributes" | default "height=1em"}}
|
||||
|
Reference in New Issue
Block a user