hexo/themes/blank/layout/partial/_third-party/baidu-analytics.ejs

12 lines
364 B
Plaintext
Raw Normal View History

2024-05-09 10:56:56 +08:00
<% if (theme.baidu_analytics){ %>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?<%= theme.baidu_analytics %>";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<% } %>