Skip to content

Commit

Permalink
[layout] _macro/post.swig: add container to busuanzi site_pv & site_uv.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam0205 committed Sep 6, 2019
1 parent ac32c65 commit 3376bb6
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions layout/_partials/analytics/busuanzi-counter.swig
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<script{{ pjax }} async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

{%- if theme.busuanzi_count.total_visitors %}
<span class="post-meta-item-icon">
<i class="fa fa-{{ theme.busuanzi_count.total_visitors_icon }}"></i>
</span>
<span class="site-uv" title="{{ __('footer.total_visitors') }}">
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
<span class="post-meta-item" id="busuanzi_container_site_uv" style='display:none'>
<span class="post-meta-item-icon">
<i class="fa fa-{{ theme.busuanzi_count.total_visitors_icon }}"></i>
</span>
<span class="site-uv" title="{{ __('footer.total_visitors') }}">
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
</span>
</span>
{%- endif %}

Expand All @@ -16,11 +18,13 @@
{%- endif %}

{%- if theme.busuanzi_count.total_views %}
<span class="post-meta-item-icon">
<i class="fa fa-{{ theme.busuanzi_count.total_views_icon }}"></i>
</span>
<span class="site-pv" title="{{ __('footer.total_views') }}">
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
<span class="post-meta-item" id="busuanzi_container_site_pv" style='display:none'>
<span class="post-meta-item-icon">
<i class="fa fa-{{ theme.busuanzi_count.total_views_icon }}"></i>
</span>
<span class="site-pv" title="{{ __('footer.total_views') }}">
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
</span>
</span>
{%- endif %}
</div>
Expand Down

0 comments on commit 3376bb6

Please sign in to comment.