chore: 移除 site.brand 可配置功能,站点名称恢复硬编码 MetaLab

考虑实际需求后,站点名称无需常改,移除前后端全部相关逻辑:
- config / middleware / helper 移除 site_brand 注入
- 页脚版权恢复硬编码 MetaLab
This commit is contained in:
2026-05-27 15:38:30 +08:00
parent ed1a969e68
commit dfbd93c847
4 changed files with 4 additions and 10 deletions

View File

@ -112,16 +112,14 @@ func (s *SiteSettings) IsAuditTypeEnabled(auditType string, defaultVal bool) boo
// SiteInfoDefaults 站点展示信息的默认值
type SiteInfoDefaults struct {
Brand string // 品牌名,默认 "MetaLab"
Framework string // 框架名,默认 "MetaZone"
Framework string // 附加标识,默认 "Framework: MetaZone"
CopyrightStart string // 版权起始年份,默认 "2024"
}
// SiteInfo 获取站点展示信息(优先 DB 设置fallback 默认值)
func (s *SiteSettings) SiteInfo() SiteInfoDefaults {
return SiteInfoDefaults{
Brand: s.Get("site.brand", "MetaLab"),
Framework: s.Get("site.framework", "MetaZone"),
Framework: s.Get("site.framework", "Framework: MetaZone"),
CopyrightStart: s.Get("site.copyright_start", "2024"),
}
}