Skip to content

Commit

Permalink
add hover text for PV UV
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-song committed Feb 3, 2018
1 parent 0fb3a41 commit a674f35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,17 @@ busuanzi_count:
site_uv: true
site_uv_header: <i class="fa fa-user"></i>
site_uv_footer:
site_uv_title:
# custom pv span for the whole site
site_pv: true
site_pv_header: <i class="fa fa-eye"></i>
site_pv_footer:
site_pv_title:
# custom pv span for one page only
page_pv: true
page_pv_header: <i class="fa fa-file-o"></i>
page_pv_footer:
page_pv_title:


# Tencent analytics ID
Expand Down
2 changes: 1 addition & 1 deletion layout/_macro/post.swig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@

{% if not is_index and theme.busuanzi_count.enable and theme.busuanzi_count.page_pv %}
<span class="post-meta-divider">|</span>
<span class="page-pv">{{ theme.busuanzi_count.page_pv_header }}
<span class="page-pv" title={{ theme.busuanzi_count.page_pv_title }}>{{ theme.busuanzi_count.page_pv_header }}
<span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>{{ theme.busuanzi_count.page_pv_footer }}
</span>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions layout/_third-party/analytics/busuanzi-counter.swig
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

{% if theme.busuanzi_count.site_uv %}
<span class="site-uv">
<span class="site-uv" title={{ theme.busuanzi_count.site_uv_title }}>
{{ theme.busuanzi_count.site_uv_header }}
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
{{ theme.busuanzi_count.site_uv_footer }}
</span>
{% endif %}

{% if theme.busuanzi_count.site_pv %}
<span class="site-pv">
<span class="site-pv" title={{ theme.busuanzi_count.site_pv_title }}>
{{ theme.busuanzi_count.site_pv_header }}
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
{{ theme.busuanzi_count.site_pv_footer }}
Expand Down

0 comments on commit a674f35

Please sign in to comment.