hexo-theme-amane/layout/plugin/busuanzi.jsx

18 lines
422 B
JavaScript

'use strict';
const { Component } = require('inferno');
const { cacheComponent } = require('../util/cache');
class Busuanzi extends Component {
render() {
return <script src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async={true}></script>;
}
}
module.exports = cacheComponent(Busuanzi, 'plugin.busuanzi', props => {
if (!props.head) {
return null;
}
return {};
});