content-dates
它能做什么
这项技能检查文章是否显示发布和更新日期,并为搜索引擎提供相匹配的日期信息。适合希望提供新鲜、可信内容的博客和新闻网站。
适用场景
- ✓当文章页面没有显示可见的发布日期时。
- ✓当更新日期与结构化数据不一致时。
- ✓当你的博客模板需要添加日期标记时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-dates/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的博客文章上显示可见的发布和更新日期,并在页面数据中加入匹配的日期信息。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会用 time 元素添加可见日期,并以 ISO 格式把 datePublished 和 dateModified 添加到文章的结构化数据中,同时添加匹配的文章 time 标签。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Show published and updated dates
Google uses publication and modification dates to assess content freshness, which influences rankings for time-sensitive queries. Visible dates also build user trust by signalling that content is current and maintained.
Quick Reference
- Include a visible published date and a
dateModifiedin JSON-LD for every article or blog post - Use ISO 8601 format (
2024-03-15T10:00:00Z) in structured data; human-readable in the visible UI - Update
dateModifiedonly when content meaningfully changes — not on trivial edits
Check
On each article or blog page, check: (1) Is there a visible published date in the page body or byline? (2) Does the JSON-LD Article or BlogPosting block include datePublished and dateModified properties in ISO 8601 format? (3) Does the <head> include <meta property="article:published_time"> and <meta property="article:modified_time"> Open Graph tags?
Fix
- Add a visible publication date in the page byline:
<time datetime="2024-03-15">March 15, 2024</time>. - Add
datePublishedanddateModifiedto the Article JSON-LD block:{ "@type": "Article", "datePublished": "2024-03-15T10:00:00Z", "dateModified": "2024-11-20T14:30:00Z" } - Add Open Graph article time tags to
<head>:<meta property="article:published_time" content="2024-03-15T10:00:00Z"> <meta property="article:modified_time" content="2024-11-20T14:30:00Z"> - Ensure your CMS or build system updates
dateModifiedautomatically on content saves.
Explain
Google's freshness algorithm rewards recently published or updated content for time-sensitive queries. Structured date markup lets Google confidently surface the correct date in search snippets; without it, Google must guess from page text or HTTP headers, often producing wrong or missing dates.
Code Review
Verify that Article or BlogPosting JSON-LD includes both datePublished and dateModified in ISO 8601 format. Check that <time datetime='...'> elements in the body use machine-readable dates. Confirm dateModified updates when content changes, not just on every deploy.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/content-dates
常见问题
日期为什么对搜索有帮助?
这项技能说明,搜索引擎会利用发布和修改日期来判断内容的新鲜程度。
什么时候应该更改修改日期?
只有在内容发生实质性变化时,而不是小幅修改时。
数据使用什么日期格式?
ISO 8601,例如带有时区的完整时间戳,而页面上可见的文字则可以更便于阅读。
详情
作者的原始描述
Use when auditing article or blog pages for date markup, generating Article JSON-LD with datePublished/dateModified, or checking whether a CMS template surfaces dates correctly.
热度
- GitHub 星标
- 75k
- 排名
- #2784
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。