From 0ed3a415080928ba82d59de75159fb9619d41f60 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 9 May 2024 18:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0q&a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- q&a.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/q&a.md b/q&a.md index ce44afe8..4d31ccd2 100644 --- a/q&a.md +++ b/q&a.md @@ -1,5 +1,31 @@ ### 常见问题 +## 配置改坏了无法启动/打开首页报错如何处理? + +删除你映射的/app/data目录下的config.json文件,然后重新启动镜像 + +## 如何加入访问量统计? + +使用如下自定义JS + +```js +document.addEventListener("DOMContentLoaded", () => { + setTimeout(() => { + document + .querySelector(".footer") + .insertAdjacentHTML( + "afterend", + `
本站总访问量
` + ); + var script = document.createElement("script"); + script.src = "//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"; + script.async = true; + document.head.appendChild(script); + }, 500); +}); +``` + + ## 如何去除底部github star? 虽然我不太愿意你去掉版权相关的东西,但是已经开放了自定义JS功能,所以这个可以通过自定义JS实现,以下方法选其一即可