标签 - GitHub
2023
Hexo静态博客之整体搭建流程
Hexo静态博客之整体搭建流程
ody.classList $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode') typeof disqusjs === 'object' && disqusjs.destroy() }) document.addEventListener('pjax:complete', function () { window.refreshFn() document.querySelectorAll('script[data-pjax]').forEach(item => { const newScript = document.createElement('script') const content = item.text || item.textContent || item.innerHTML || "" Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value)) newScript.appendChild(document.createTextNode(content)) item.parentNode.replaceChild(newScript, item) }) GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update() typeof panguInit === 'function' && panguInit() // google analytics typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname}); // baidu analytics typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]); typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting() // prismjs typeof Prism === 'object' && Prism.highlightAll() }) document.addEventListener('pjax:error', e => { if (e.request.status === 404) { pjax.loadUrl('/404.html') } })