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:
Julia March
2024-08-11 18:30:19 +02:00
committed by GitHub
parent 9c0ba06db4
commit f439e6bb87
7 changed files with 78 additions and 7 deletions

View File

@ -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
)
-}}