From 33175a89515ce0d35ab126a1b20c10c296a56b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Wed, 23 Jul 2025 16:26:09 +0800 Subject: [PATCH] 0.8 --- README.md | 8 ++- assets/js/bundle.js | 7 +- footer.php | 9 +-- functions.php | 161 ++++++++++++++++++++++++++++++++++++++------ header.php | 59 ++++++++-------- index.php | 7 +- post.php | 2 +- 7 files changed, 189 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index ddbb8d2..b52294a 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,15 @@ ## 更新日志 & 预览 +### 0.8 + +- 兼容 Typecho 1.3.0 +- 自动裁切封面并保存在主题目录 `usr/cache/covers` 下,使用前必须开启 `php` 的 `GD拓展` 和`usr`目录的写权限. +- 站点统计 + ### 0.7.2 -- 优化页面加载速度,自动裁切封面,并压缩为`webp`格式,并保存在主题目录`assets`-`images`-`covers`下,使用前必须开启`php`的`GD拓展`和主题目录的写入权限 +- ~~优化页面加载速度,自动裁切封面,并压缩为`webp`格式,并保存在主题目录`assets`-`images`-`covers`下,使用前必须开启`php`的`GD拓展`和主题目录的写入权限~~ - 修复了置顶文章和翻页的问题 ### 0.7.1 diff --git a/assets/js/bundle.js b/assets/js/bundle.js index aaccb6e..ce12cba 100644 --- a/assets/js/bundle.js +++ b/assets/js/bundle.js @@ -17,7 +17,7 @@ is_single = false; post_id = 0; is_archive = false; - VERSION = "0.7.2"; + VERSION = "0.8"; constructor() { super(); this.initCopyright(); @@ -45,8 +45,9 @@ } } initCopyright() { - const copyright = ` options->showtime): ?>  页面加载耗时 - options->tongji(); ?> -