add footer counter

master
iotcat 4 years ago
parent ba479f037e
commit 5103d83bf5
  1. 9
      layout/_macro/post.swig
  2. 10
      layout/_partial/footer.swig
  3. 1
      layout/_script/_comments/valine.swig

@ -20,14 +20,7 @@
{%- endfor -%}
</span>
{%- endif -%}
{%- if theme.leancloud.app_id and theme.leancloud.app_key -%}
<span class="post-visits"
data-url="{{ url_for(post.path) }}"
data-title="{{ post.title }}">
{{ __('posts.visits') }} 0
</span>
{%- endif -%}
</div>
</div>
</header>
{#- Post TOC -#}

@ -2,6 +2,16 @@
{%- include "./_footer/social.swig" -%}
<div class="copyright">
{%- if theme.valine.statistic and not is_home() -%}
<span id="/{{ page.path }}" class="statistic leancloud_visitors">
<em>Visitors </em> <i class="leancloud-visitors-count">??</i>
<span class="division"> |</span>
<em>Reading </em> {{ readingTime(page.content, 'min', 150) }}
</span>
<br>
{%- endif -%}
<span class="power-by">
{{ __('footer.powered', '<a class="hexo-link" href="https://hexo.io/">Hexo</a>') }}
</span>

@ -56,6 +56,7 @@ img.vimg:hover {
metaPlaceholder: {"nick":"昵称/QQ号","mail":"邮箱(完全保密)"},
placeholder: "填写邮箱可以及时收到回复哦(●'◡'●)",
enableQQ: true,
visitor: true,
emojiCDN: '//i0.hdslb.com/bfs/emote/',
emojiMaps: {
"tv_doge": "6ea59c827c414b4a2955fe79e0f6fd3dcd515e24.png",

Loading…
Cancel
Save