[Feature]: add visitor style
parent
ae42726149
commit
57fc19f525
|
@ -49,8 +49,8 @@ donate:
|
||||||
buymeacoffee: 'Buy me a coffee'
|
buymeacoffee: 'Buy me a coffee'
|
||||||
plugin:
|
plugin:
|
||||||
backtotop: 'Back to top'
|
backtotop: 'Back to top'
|
||||||
visit_count: '%s visits'
|
visit_count: ' Site PV: %s '
|
||||||
visitor_count: 'Visited by %s users'
|
visitor_count: 'Site UV: %s '
|
||||||
cookie_consent:
|
cookie_consent:
|
||||||
message: This website uses cookies to improve your experience.
|
message: This website uses cookies to improve your experience.
|
||||||
dismiss: Got it!
|
dismiss: Got it!
|
||||||
|
|
|
@ -31,13 +31,8 @@ class Footer extends Component {
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="level">
|
<div class="level">
|
||||||
<div class="level-start">
|
<div class="level-start">
|
||||||
<a class="footer-logo is-block mb-2" href={siteUrl}>
|
|
||||||
{footerLogo}
|
|
||||||
</a>
|
|
||||||
<p class="is-size-7">
|
<p class="is-size-7">
|
||||||
<span dangerouslySetInnerHTML={{ __html: `© ${siteYear} ${author || siteTitle}` }}></span>
|
<span dangerouslySetInnerHTML={{ __html: `© ${siteYear} ${author || siteTitle}` }}></span>
|
||||||
Powered by <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a> &
|
|
||||||
<a href="https://github.com/ppoffice/hexo-theme-icarus" target="_blank" rel="noopener">Icarus</a>
|
|
||||||
{showVisitorCounter ? <br /> : null}
|
{showVisitorCounter ? <br /> : null}
|
||||||
{showVisitorCounter ? <span id="busuanzi_container_site_uv"
|
{showVisitorCounter ? <span id="busuanzi_container_site_uv"
|
||||||
dangerouslySetInnerHTML={{ __html: visitorCounterTitle }}></span> : null}
|
dangerouslySetInnerHTML={{ __html: visitorCounterTitle }}></span> : null}
|
||||||
|
@ -88,6 +83,6 @@ module.exports = cacheComponent(Footer, 'common.footer', props => {
|
||||||
links,
|
links,
|
||||||
copyright: footer?.copyright ?? '',
|
copyright: footer?.copyright ?? '',
|
||||||
showVisitorCounter: plugins && plugins.busuanzi === true,
|
showVisitorCounter: plugins && plugins.busuanzi === true,
|
||||||
visitorCounterTitle: _p('plugin.visitor_count', '<span id="busuanzi_value_site_uv">0</span>')
|
visitorCounterTitle: _p('plugin.visitor_count', '<span id="busuanzi_value_site_uv">0</span>') + _p('plugin.visit_count', '<span id="busuanzi_value_site_pv">0</span>')
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue