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:
Jowe
2026-01-03 16:32:13 +08:00
parent 495c3b8025
commit 7da0bb6e54
7 changed files with 703 additions and 5 deletions

View File

@@ -1,6 +1,18 @@
{% extends 'base_new.html' %}
{% block title %}ZJPB - 自己品吧 | 发现最新最好用的AI工具和产品{% endblock %}
{% block title %}{% if selected_tag %}{{ selected_tag.seo_title or (selected_tag.name + ' - ZJPB AI工具导航') }}{% else %}ZJPB - 自己品吧 | 发现最新最好用的AI工具和产品{% endif %}{% endblock %}
{% block extra_head %}
<!-- v2.4新增: 标签页SEO优化 -->
{% if selected_tag %}
<meta name="description" content="{{ selected_tag.seo_description or (selected_tag.description + ' - 发现最好用的' + selected_tag.name + '工具') }}">
<meta name="keywords" content="{{ selected_tag.seo_keywords or (selected_tag.name + ',AI工具,自己品吧,ZJPB') }}">
<link rel="canonical" href="{{ request.url }}">
{% else %}
<meta name="description" content="ZJPB(自己品吧) - 发现最新最好用的AI工具和产品导航站涵盖AI写作、AI绘画、AI编程等多个领域">
<meta name="keywords" content="AI工具,AI导航,自己品吧,ZJPB,人工智能,AI产品">
{% endif %}
{% endblock %}
{% block extra_css %}
<style>