mirror of
https://github.com/imfing/hextra.git
synced 2025-08-25 23:17:02 -04:00
feat(card): add tagIcon and tagBorder options (#791)
This commit is contained in:

committed by
GitHub

parent
c149af0f74
commit
22f81e2470
@@ -25,6 +25,8 @@ A shortcode to create a card.
|
||||
{{- $imageStyle := .Get "imageStyle" -}}
|
||||
{{- $tag := .Get "tag" -}}
|
||||
{{- $tagColor := .Get "tagColor" | default (.Get "tagType") | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
|
||||
{{- $tagBorder := not (eq (.Get "tagBorder") false) | default true }}
|
||||
{{- $tagIcon := .Get "tagIcon" | default "" -}}
|
||||
|
||||
{{/* Image processing options */}}
|
||||
{{- $method := .Get "method" | default "Resize" | humanize -}}
|
||||
@@ -61,5 +63,7 @@ A shortcode to create a card.
|
||||
"imageStyle" $imageStyle
|
||||
"tag" $tag
|
||||
"tagType" $tagColor
|
||||
"tagBorder" $tagBorder
|
||||
"tagIcon" $tagIcon
|
||||
)
|
||||
-}}
|
||||
|
Reference in New Issue
Block a user