21
assets/js/third-party/others/pageview.js
vendored
Normal file
21
assets/js/third-party/others/pageview.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/* Waline pageview plugin */
|
||||
NexT.plugins.others.pageview = function() {
|
||||
const busz = NexT.CONFIG.busuanzi;
|
||||
if (busz != undefined && busz.pageview) return;
|
||||
|
||||
let pageview_js = undefined;
|
||||
|
||||
// Here can append others pageview plugin
|
||||
const waline = NexT.CONFIG.waline;
|
||||
if (waline != undefined && waline.cfg.pageview) {
|
||||
pageview_js = NexT.utils.getCDNResource(NexT.CONFIG.page.pageview.js);
|
||||
}
|
||||
|
||||
if (pageview_js == undefined) return;
|
||||
|
||||
NexT.utils.getScript(pageview_js, function(){
|
||||
Waline.pageviewCount({
|
||||
serverURL: waline.cfg.serverurl
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user