7 lines
303 B
HTML
7 lines
303 B
HTML
|
{{define "content_badge"}}
|
||
|
<span class="badge {{if eq .IsOutline true}}
|
||
|
border border-{{.TypeClass}} bg-{{.TypeClass}}-subtle text-{{.TypeClass}}-emphasis
|
||
|
{{else}}
|
||
|
text-bg-{{if .TypeClass}}{{.TypeClass}}{{else}}secondary{{end}}
|
||
|
{{end}} rounded-pill ">{{.Text}}</span>
|
||
|
{{end}}
|