1
0
Fork 0
forked from goffee/core
core/template/components/content_badge.html

7 lines
303 B
HTML
Raw Permalink Normal View History

2024-10-15 17:06:49 -04:00
{{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}}