diff --git a/package-lock.json b/package-lock.json index d4cdb13..147cafd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "hexo": "^8.1.0", "hexo-abbrlink": "^2.2.1", "hexo-ai-summary-liushen": "^1.3.1", + "hexo-butterfly-swiper-lyx": "^1.0.2", "hexo-deployer-git": "^4.0.0", "hexo-douban": "^2.3.6", "hexo-filter-mathjax": "^0.9.1", @@ -1729,6 +1730,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/hexo-butterfly-swiper-lyx": { + "version": "1.0.2", + "resolved": "https://mirrors.huaweicloud.com/repository/npm/hexo-butterfly-swiper-lyx/-/hexo-butterfly-swiper-lyx-1.0.2.tgz", + "integrity": "sha512-qpH5EMqOJFN1fRKqNXVXMzCvbSP92QEeh0UJ5Jfw9mtv4TsAWJvS+S+CtJc3TfB69it2F19Yk9KszcMBWA5Jow==", + "license": "MIT" + }, "node_modules/hexo-cli": { "version": "4.3.2", "resolved": "https://mirrors.huaweicloud.com/repository/npm/hexo-cli/-/hexo-cli-4.3.2.tgz", diff --git a/package.json b/package.json index cdfbed1..fa03070 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "hexo": "^8.1.0", "hexo-abbrlink": "^2.2.1", "hexo-ai-summary-liushen": "^1.3.1", + "hexo-butterfly-swiper-lyx": "^1.0.2", "hexo-deployer-git": "^4.0.0", "hexo-douban": "^2.3.6", "hexo-filter-mathjax": "^0.9.1", @@ -44,4 +45,4 @@ "vite-plugin-require-transform": "^1.0.21", "xml2js": "^0.6.2" } -} \ No newline at end of file +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index e7470aa..0000000 --- a/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended",":dependencyDashboard" - ] -} diff --git a/themes/butterfly/source/js/statistic.js b/themes/butterfly/source/js/statistic.js new file mode 100644 index 0000000..c03d6e8 --- /dev/null +++ b/themes/butterfly/source/js/statistic.js @@ -0,0 +1,11 @@ + var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="https://statistic.biss.click/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '1']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); \ No newline at end of file