浏览代码

【新增,模板】添加 instant.page 预加载功能并更新 README 文档

- 在 footer.tmpl 中引入 instantpage-5.2.0.min.js 脚本
- 更新 README.md 和 README.en.md,添加“更改和功能”以及“鸣谢”部分
- 记录新增的第三方库 darkmode.js 和 instant.page 的使用及许可证信息
PJ568 1 年之前
父节点
当前提交
74f8d8fa2b
共有 4 个文件被更改,包括 34 次插入 和 0 次删除
  1. 16 0
      README.en.md
  2. 16 0
      README.md
  3. 0 0
      public/js/instantpage-5.2.0.min.js
  4. 2 0
      templates/base/footer.tmpl

+ 16 - 0
README.en.md

@@ -2,6 +2,13 @@
 
 > English | [简体中文](README.md)
 
+## Changes and Features
+
+- Replace icons and title with SwayBien icons and title;
+- Replace default user avatar with matchstick man avatar;
+- Dark mode and toggle button based on Darkmode.js;
+- Page preloading feature based on instant.page.
+
 ## Usage
 
 1. Download the theme files
@@ -34,3 +41,12 @@
 ## License
 
 [Creative Commons Attribution-ShareAlike 4.0 International License](LICENSE)
+
+### Acknowledgments
+
+#### Projects
+
+|     Name     | License                                | Address                                                                                    |
+| :----------: | :------------------------------------- | :----------------------------------------------------------------------------------------- |
+| darkmode.js  | [MIT license](https://mit-license.org) | [Github](https://github.com/sandoche/Darkmode.js)、[Website](https://darkmodejs.learn.uno) |
+| instant.page | [MIT license](https://mit-license.org) | [Github](https://github.com/instantpage/instant.page)、[Website](https://instant.page)     |

+ 16 - 0
README.md

@@ -2,6 +2,13 @@
 
 > [English](README.en.md) | 简体中文
 
+## 更改和功能
+
+- 替换图标和标题为随变图标和标题;
+- 替换默认用户头像为火柴人头像;
+- 基于 Darkmode.js 的深色模式和切换按钮;
+- 基于 instant.page 的页面预加载功能。
+
 ## 使用方法
 
 1. 下载主题文件
@@ -34,3 +41,12 @@
 ## 许可协议
 
 [Creative Commons Attribution-ShareAlike 4.0 International License](LICENSE)
+
+### 鸣谢
+
+#### 项目
+
+|     名称     | 协议                                   | 地址                                                                                       |
+| :----------: | :------------------------------------- | :----------------------------------------------------------------------------------------- |
+| darkmode.js  | [MIT license](https://mit-license.org) | [Github](https://github.com/sandoche/Darkmode.js)、[Website](https://darkmodejs.learn.uno) |
+| instant.page | [MIT license](https://mit-license.org) | [Github](https://github.com/instantpage/instant.page)、[Website](https://instant.page)     |

文件差异内容过多而无法显示
+ 0 - 0
public/js/instantpage-5.2.0.min.js


+ 2 - 0
templates/base/footer.tmpl

@@ -70,6 +70,8 @@
 
 <script src="{{AppSubURL}}/js/libs/emojify-1.1.0.min.js"></script>
 <script src="{{AppSubURL}}/js/libs/clipboard-2.0.4.min.js"></script>
+<!-- SwayBien Scripts -->
+<script src="{{AppSubURL}}/js/libs/instantpage-5.2.0.min.js"></script>
 
 {{template "inject/footer" .}}
 </html>

部分文件因为文件数量过多而无法显示