blob: c26226a03f0d0d7c8b10ff03f4f20a4d173f8fb7 (
plain)
1
2
3
4
5
6
|
<button class="btn btn-outline-primary btn-sm pull-xs-right {{ if .IsFavorited }} active {{ end }}"
hx-post="/htmx/home/articles/{{ .Slug }}/favorite"
hx-swap="outerHTML"
>
<i class="ion-heart"></i> {{ .GetFavoriteCount }}
</button>
|