mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
🐛 fixed likes and view counters for taxonomies and terms
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
<span>
|
||||
{{ if eq .Kind "taxonomy"}}
|
||||
<span id="likes_taxonomy_{{ .Page.Data.Plural }}" title="likes">0</span>
|
||||
{{ else if eq .Kind "term"}}
|
||||
<span id="likes_term_{{ .Page.Data.Term }}" title="likes">0</span>
|
||||
{{ else }}
|
||||
<span id="likes_{{ .File.Path }}" title="likes">0</span>
|
||||
{{ end }}
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
|
||||
</span>
|
||||
{{- /* Trim EOF */ -}}
|
||||
@@ -1,5 +1,11 @@
|
||||
<span>
|
||||
{{ if eq .Kind "taxonomy"}}
|
||||
<span id="views_taxonomy_{{ .Page.Data.Plural }}" title="views">0</span>
|
||||
{{ else if eq .Kind "term"}}
|
||||
<span id="views_term_{{ .Page.Data.Term }}" title="views">0</span>
|
||||
{{ else }}
|
||||
<span id="views_{{ .File.Path }}" title="views">0</span>
|
||||
{{ end }}
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
|
||||
</span>
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
||||
Reference in New Issue
Block a user