Skip to content

Instantly share code, notes, and snippets.

@mistergraphx
Last active July 31, 2018 07:21
Show Gist options
  • Save mistergraphx/f6f65456a40b0614383c0cdd4849acd7 to your computer and use it in GitHub Desktop.
Save mistergraphx/f6f65456a40b0614383c0cdd4849acd7 to your computer and use it in GitHub Desktop.
<!-- Structured Markup for a blog page
Tools:
https://search.google.com/structured-data/testing-tool
References:
https://schema.org/Blog
https://schema.org/BlogPosting
mainEntityOfPage : requis par Google Structured Data
https://webmasters.stackexchange.com/questions/87940/new-required-mainentityofpage-for-article-structured-data
-->
<article class="content" itemscope itemtype="http://schema.org/blog">
<header class="content-header">
<h2 class="headline" itemprop="headline">Blog Title</h2>
<p itemprop="description">Blog description</p>
</header>
<!-- BlogPost List -->
<section class="blog-post-list">
<!-- First item -->
<article itemid="http://example.com/article-1"
itemprop="blogPost"
itemscope itemtype="http://schema.org/BlogPosting">
<meta itemprop="mainEntityOfPage" content="http://example.com/article-1" />
<meta itemprop="dateModified" content="2015-03-09T13:13:00-07:00">
<img itemprop="image" src="http://mister-graphx.com/images/blog_post_thumbnail.jpg" />
<h2 itemprop="headline">Blog Post Title1</h2>
<p itemprop="description">Blog post description</p>
<span itemprop="author">Arnaud B.</span>
<time itemprop="datePublished" content="2015-03-09T13:13:00-07:00">March 9, 2015 1:13 PM</time>
<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<span itemprop="brand">
<span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<link itemprop="url" href="http://mister-graphx.com/images/logo.png" />
<img itemprop="image" src="http://mister-graphx.com/images/logo.png" />
</span>
<span itemprop="name">Brand name</span>
</span>
</span>
</article>
<!-- Second item -->
<article itemid="http://example.com/article-2"
itemprop="blogPost"
itemscope itemtype="http://schema.org/BlogPosting">
<meta itemprop="mainEntityOfPage" content="http://example.com/article-2" />
<meta itemprop="dateModified" content="2015-03-09T13:13:00-07:00">
<img itemprop="image" src="http://mister-graphx.com/images/blog_post_thumbnail.jpg" />
<h2 itemprop="headline">Blog Post Title 2</h2>
<p itemprop="description">Blog post 2 description</p>
<span itemprop="author">Arnaud B.</span>
<time itemprop="datePublished" content="2015-03-09T13:13:00-07:00">March 9, 2015 1:13 PM</time>
<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<span itemprop="brand">
<span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<link itemprop="url" href="http://mister-graphx.com/images/logo.png" />
<img itemprop="image" src="http://mister-graphx.com/images/logo.png" />
</span>
<span itemprop="name">Brand name</span>
</span>
</span>
</article>
</section>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment