跳到正文
Skillpedia
SEO75k · #2784

content-dates

它能做什么

这项技能检查文章是否显示发布和更新日期,并为搜索引擎提供相匹配的日期信息。适合希望提供新鲜、可信内容的博客和新闻网站。

适用场景

  • ✓当文章页面没有显示可见的发布日期时。
  • ✓当更新日期与结构化数据不一致时。
  • ✓当你的博客模板需要添加日期标记时。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-dates/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-dates/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 dateModified in 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 dateModified only 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

  1. Add a visible publication date in the page byline: <time datetime="2024-03-15">March 15, 2024</time>.
  2. Add datePublished and dateModified to the Article JSON-LD block:
    {
      "@type": "Article",
      "datePublished": "2024-03-15T10:00:00Z",
      "dateModified": "2024-11-20T14:30:00Z"
    }
    
  3. 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">
    
  4. Ensure your CMS or build system updates dateModified automatically 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2784
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能