Merge pull request #137 from dillonzq/fix/valine_vistor

fix(comment): fix visitors count for valine
This commit is contained in:
Dillon 2020-03-10 17:13:41 +08:00 committed by GitHub
commit 4d12d8baaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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": {},