feat: v2.4.0 - SEO全面优化
新增功能: 1. 自动化SEO基础设施 - Sitemap.xml 动态生成 (/sitemap.xml) - Robots.txt 动态配置 (/robots.txt) 2. Schema.org 结构化数据 - 工具详情页添加 SoftwareApplication 结构化数据 - 面包屑导航添加 BreadcrumbList 结构化数据 - Open Graph 标签支持社交媒体分享 3. 智能内链系统 - 自动识别工具名称并添加内部链接 - auto_link 过滤器支持内容互联 4. 标签专题页SEO优化 - Tag模型新增字段: seo_title, seo_description, seo_keywords - 支持自定义标签页SEO信息 - 提供迁移脚本: migrate_tag_seo_fields.py 5. 面包屑导航 - 可视化导航: 首页 > 标签 > 工具名 - 支持Schema.org和视觉显示 6. 页面级SEO改进 - 工具详情页: canonical链接, 动态meta标签 - 标签页: 专属SEO信息支持 - 首页: 完整meta标签配置 技术改进: - 迁移脚本支持幂等性检查 - Windows控制台编码兼容性优化 - 数据库字段注释标注版本 部署文档: DEPLOY_v2.4.0.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,9 @@ class Tag(db.Model):
|
||||
name = db.Column(db.String(50), unique=True, nullable=False, comment='标签名称')
|
||||
slug = db.Column(db.String(50), unique=True, nullable=False, comment='URL别名')
|
||||
description = db.Column(db.String(200), comment='标签描述')
|
||||
seo_title = db.Column(db.String(100), comment='SEO标题(v2.4新增)')
|
||||
seo_description = db.Column(db.String(300), comment='SEO页面描述(v2.4新增)')
|
||||
seo_keywords = db.Column(db.String(200), comment='SEO关键词(v2.4新增)')
|
||||
icon = db.Column(db.String(100), comment='图标')
|
||||
sort_order = db.Column(db.Integer, default=0, comment='排序权重')
|
||||
created_at = db.Column(db.DateTime, default=datetime.now, comment='创建时间')
|
||||
@@ -79,6 +82,9 @@ class Tag(db.Model):
|
||||
'name': self.name,
|
||||
'slug': self.slug,
|
||||
'description': self.description,
|
||||
'seo_title': self.seo_title,
|
||||
'seo_description': self.seo_description,
|
||||
'seo_keywords': self.seo_keywords,
|
||||
'icon': self.icon
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user