mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-08 12:09:21 +00:00
fixed view like counters to work across multiple langs
This commit is contained in:
1 parent
74b985654e
commit
6190898b70
6 files changed
+48
-14
No files matched your search
@@ -4,7 +4,12 @@
|
||||
{{ else if eq .Kind "term"}}
|
||||
<span id="views_term_{{ .Page.Data.Term }}"
|
||||
{{ else }}
|
||||
<span id="views_{{ .File.Path }}"
|
||||
{{ $path := .File.Path }}
|
||||
{{range .AllTranslations}}
|
||||
{{ $lang := print "." .Lang ".md" }}
|
||||
{{ $path = replace $path $lang ".md" }}
|
||||
{{end}}
|
||||
<span id="views_{{ $path }}"
|
||||
{{ 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="views">loading</span>
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
|
||||
|
||||
Reference in new issue
Block a user