mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 15:11:24 -04:00
feat: add tag support for card shortcode (#427)
* styles: accept tags on cards with default and custom colors * styles: compile css
This commit is contained in:
@ -7,6 +7,8 @@
|
||||
{{- $width := 0 -}}
|
||||
{{- $height := 0 -}}
|
||||
{{- $imageStyle := .Get "imageStyle" -}}
|
||||
{{- $tag := .Get "tag" -}}
|
||||
{{- $tagColor := .Get "tagColor" -}}
|
||||
|
||||
{{/* Image processing options */}}
|
||||
{{- $method := .Get "method" | default "Resize" | humanize -}}
|
||||
@ -48,5 +50,7 @@
|
||||
"width" $width
|
||||
"height" $height
|
||||
"imageStyle" $imageStyle
|
||||
"tag" $tag
|
||||
"tagColor" $tagColor
|
||||
)
|
||||
-}}
|
||||
|
Reference in New Issue
Block a user