blowfish/layouts/partials/meta/likes.html

19 lines
771 B
HTML
Raw Normal View History

2022-09-28 17:43:50 -05:00
<span>
{{ if eq .Kind "taxonomy" }}
<span id="likes_taxonomy_{{ .Page.Data.Plural }}">
{{ else if eq .Kind "term" }}
<span id="likes_term_{{ .Page.Data.Term }}">
{{ else }}
{{ $translations := .AllTranslations }}
{{ with .File }}
{{ $path := .Path }}
{{range $translations}}
{{ $lang := print "." .Lang ".md" }}
{{ $path = replace $path $lang ".md" }}
{{end}}
<span id="likes_{{ $path }}">
{{ end }}
{{ end }}
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="likes">loading</span>
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
</span>