fix(comment): fix visitors count for valine

This commit is contained in:
Dillon 2020-03-10 17:10:45 +08:00
parent 9f6fe226a6
commit 629e2e5fda
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@
<i class="far fa-calendar-alt fa-fw"></i><time datetime={{ $publish_date }}>{{ $publish_date }}</time>&nbsp;
<i class="fas fa-pencil-alt fa-fw"></i>{{ T "wordCount" .WordCount }}&nbsp;
<i class="far fa-clock fa-fw"></i>{{ T "readingTime" .ReadingTime }}&nbsp;
{{- if $scratch.Get "production" | and .Site.Params.valine.enable | and .Site.Params.valine.visitor -}}
{{- if $scratch.Get "production" | and .Site.Params.comment.valine.enable | and .Site.Params.comment.valine.visitor -}}
<span id="{{ .RelPermalink | relURL }}" class="leancloud_visitors" data-flag-title="{{ .Title }}">
<i class="far fa-eye fa-fw"></i><span class=leancloud-visitors-count></span>&nbsp;{{ T "views" }}
</span>&nbsp;

View file

@ -1,6 +1,6 @@
{
"name": "loveit-src",
"version": "0.1.1",
"version": "0.1.2",
"description": "LoveIt theme source file",
"main": "index.js",
"dependencies": {},