feat: 后台侧边栏紧凑化(13rem + 自定义 CSS)+ 博客设置改 Tab 六分区(站点/外观/订阅SEO/评论/附件/维护),补回时间格式/评论排序/缩略图/水印等 sablog 设置项并接入实际使用

This commit is contained in:
ak
2026-08-11 21:30:56 +08:00
parent 6c7562115f
commit b9f02df49f
20 changed files with 116 additions and 50 deletions
+3 -2
View File
@@ -95,9 +95,10 @@ class Post extends Model implements HasMedia
public function registerMediaConversions(?Media $media = null): void
{
[$tw, $th] = array_pad(explode('x', strtolower((string) blog_setting('attachments_thumbs_size', '500x500'))), 2, '500');
$this->addMediaConversion('thumb')
->width(500)
->height(500)
->width((int) $tw)
->height((int) $th)
->performOnCollections('attachments');
}