From 39d3de4a59e99794661844af475a6ccea4717a50 Mon Sep 17 00:00:00 2001 From: LyLme Date: Fri, 21 Jan 2022 18:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e5b18a5..80eb248 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,14 @@ 1. 前往[Releases](https://github.com/LyLme/lylme_spage/releases/) 下载最新版本源码压缩包,上传到网站根目录解压 2. 访问http://域名/install目录,按提示进行安装 +#### 修改背景 + +- **每日一图背景:**六零导航页默认使用`assets/img/bing.php`(Bing每日一图)作为背景,但因使用PHP调用的图片不是静态文件,没有浏览器缓存,每次加载都会重新请求会导致加载速度慢,解决方案:添加一个每天执行的CRON任务:`GET http://xxx.com/assets/img/cron.php` 执行后会将Bing每日一图保存到`assets/img/background.jpg`,首次请求后 +- **自定义背景:**将背景图片改名为`background.jpg`上传至`assets/img`即可 +- **CDN&背景接口:**在`index.php`查找`./assets/img/bing.php`替换为你的背景文件地址 + +以上三种方案任选一种,也可以忽略使用默认背景接口 + #### 鸣谢 **D.Young**