Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created May 14, 2015 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaryJones/0eacb2437749838155d0 to your computer and use it in GitHub Desktop.
Save GaryJones/0eacb2437749838155d0 to your computer and use it in GitHub Desktop.
Comments schema changes
<article itemscope="itemscope" itemprop="http://schema.org/BlogPosting">
<!-- Blog post content, now comments list in section -->
<article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/UserComments">
<header>
<p itemprop="creator" itemscope="itemscope" itemtype="http://schema.org/Person">
<span itemprop="name"><a href="http://www.example.com" rel="external nofollow" itemprop="url">A.N. Other</a></span>
</p>
<p>
<time datetime="2014-07-01T19:13:54+00:00" itemprop="commentTime"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time>
</p>
</header>
<div itemprop="commentText">
<p>This is an example of a comment made on a post.</p>
</div>
</article>
<!-- Other comments -->
</article>
<article itemscope="itemscope" itemprop="http://schema.org/BlogPosting">
<!-- Blog post content, now comments list in section -->
<article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/Comment">
<header>
<p itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
<span itemprop="name"><a href="http://www.example.com" rel="external nofollow" itemprop="url">A.N. Other</a></span>
</p>
<p>
<time datetime="2014-07-01T19:13:54+00:00" itemprop="datePublished"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time>
</p>
</header>
<div itemprop="text">
<p>This is an example of a comment made on a post.</p>
</div>
</article>
<!-- Other comments -->
</article>
--- 1-before.html
+++ 2-after.html
@@ -1,17 +1,17 @@
<article itemscope="itemscope" itemprop="http://schema.org/BlogPosting">
<!-- Blog post content, now comments list in section -->
- <article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/UserComments">
+ <article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/Comment">
<header>
- <p itemprop="creator" itemscope="itemscope" itemtype="http://schema.org/Person">
+ <p itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
<span itemprop="name"><a href="http://www.example.com" rel="external nofollow" itemprop="url">A.N. Other</a></span>
</p>
<p>
- <time datetime="2014-07-01T19:13:54+00:00" itemprop="commentTime"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time>
+ <time datetime="2014-07-01T19:13:54+00:00" itemprop="datePublished"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time>
</p>
</header>
- <div itemprop="commentText">
+ <div itemprop="text">
<p>This is an example of a comment made on a post.</p>
</div>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment