Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save CSElliyas/784e5bfce7f85c48fe6879f943568f0a to your computer and use it in GitHub Desktop.

Select an option

Save CSElliyas/784e5bfce7f85c48fe6879f943568f0a to your computer and use it in GitHub Desktop.
How to Fix Data Structured Errors in Blogger (Schema Markup) - Desktop Version
<div class='post h-entry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
<!-- Twitter Card Tags -->
<meta content='@compromath' name='twitter:site'/>
<meta content='@Elliyas_Ahmed' name='twitter:creator'/>
<b:if cond='data:post.firstImageUrl'>
<meta content='summary_large_image' name='twitter:card'/>
<!-- summary_large_image or any other your card types -->
<meta expr:content='data:post.firstImageUrl' name='twitter:image'/>
<b:else/>
<meta content='summary' name='twitter:card'/>
<b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postImageThumbnailUrl' name='twitter:image'/>
</b:if>
</b:if>
<b:if cond='data:blog.pageName'>
<meta expr:content='data:blog.pageName' name='twitter:title'/>
<b:else/>
<meta expr:content='data:blog.title' name='twitter:title'/>
</b:if>
<b:if cond='data:blog.metaDescription'>
<meta expr:content='data:blog.metaDescription' name='twitter:description'/>
<b:else/>
<meta expr:content='data:post.snippet' name='twitter:description'/>
</b:if>
<meta expr:content='data:post.sharePostUrl' name='twitter:url'/>
<!-- /Twitter Card Tags --> <!-- Pinterest Rich Pins Tags -->
<meta expr:content='data:post.timestampISO8601' property='article:published_time'/>
<meta content='Technology' property='article:section'/>
<b:loop values='data:post.labels' var='label'>
<meta expr:content='data:label.name' property='article:tag'/>
</b:loop>
<!-- /Pinterest Rich Pins Tags -->
<meta expr:itemid='data:post.link ? data:post.link : data:post.url' itemType='https://schema.org/WebPage' itemprop='mainEntityOfPage' itemscope='itemscope'/>
<meta expr:content='data:post.timestamp' itemprop='datePublished'/>
<meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>
<meta expr:content='data:post.author' itemprop='author'/>
<div itemprop='publisher' itemscope='itemscope' itemtype='https://schema.org/Organization'>
<div itemprop='logo' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>
<image alt='compromath' itemprop='url' src='http://1.bp.blogspot.com/-FIEZPMAnW7Y/WHMUbTqioFI/AAAAAAAABC0/Bp3k9fcxMmM-raXqsc--hOFZcm2DrROwgCK4B/s1600/logo%2Bcompromath.png' style='display:none'/>
<meta alt='compromath' content='http://1.bp.blogspot.com/-FIEZPMAnW7Y/WHMUbTqioFI/AAAAAAAABC0/Bp3k9fcxMmM-raXqsc--hOFZcm2DrROwgCK4B/s1600/logo%2Bcompromath.png' itemprop='image' style='display:none'/>
<meta content='600' itemprop='width'/>
<meta content='600' itemprop='height'/>
</div>
<meta expr:content='data:blog.title' itemprop='name'/>
</div>
<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>
<image alt='compromath' itemprop='url' src='http://1.bp.blogspot.com/-FIEZPMAnW7Y/WHMUbTqioFI/AAAAAAAABC0/Bp3k9fcxMmM-raXqsc--hOFZcm2DrROwgCK4B/s1600/logo%2Bcompromath.png' style='display:none'/>
<meta alt='compromath' content='http://1.bp.blogspot.com/-FIEZPMAnW7Y/WHMUbTqioFI/AAAAAAAABC0/Bp3k9fcxMmM-raXqsc--hOFZcm2DrROwgCK4B/s1600/logo%2Bcompromath.png' itemprop='image' style='display:none'/>
<meta content='800' itemprop='width'/>
<!--Images should be at least 696 pixels wide.-->
<meta content='800' itemprop='height'/>
</div>
<meta expr:content='data:blog.blogId'/>
<meta expr:content='data:post.id'/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment