From ee0cd328779efa9f18fb9d6a7dea5d9fa5f7d7a8 Mon Sep 17 00:00:00 2001 From: filesite Date: Sat, 7 Sep 2024 02:56:36 +0800 Subject: [PATCH] add version and release date show --- FAQ.md | 12 ++++++------ conf/app.php | 4 +++- themes/beauty/views/site/index.php | 6 ++++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/FAQ.md b/FAQ.md index c6ef594..92cc780 100644 --- a/FAQ.md +++ b/FAQ.md @@ -55,15 +55,15 @@ ## 怎么修改底部的版权信息? -请编辑目录下的php文件: +请在图片根目录下,创建文件**README_copyright.txt**,内容参考下面示例代码: + ``` -themes/beauty/views/layout/ +©2022 - 2024 +by FileSite.io +
+执行耗时: {page_time_cost} ms ``` -找到“尾部网站信息”,按自己的需要修改并保存。 - -注意本地保存相关文件存档,machete升级系统时会覆盖此目录下的文件。 - ## 相册部署到外网了,点击图片打开有点慢怎么办? diff --git a/conf/app.php b/conf/app.php index 1ae891e..32874cf 100644 --- a/conf/app.php +++ b/conf/app.php @@ -3,7 +3,9 @@ * Config */ $configs = array( - 'version' => '0.1.0', + 'version' => '0.2.1', + 'releaseDate' => '2024-9-7', + 'default_timezone' => 'Asia/Hong_Kong', //timezone, check more: https://www.php.net/manual/en/timezones.asia.php 'site_name' => 'Machete from FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统', diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 9d07a76..2d0afea 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -59,6 +59,12 @@ eof; } } ?> +

  • +
  • + 版本 +
    + 发布@ +