Skip to content

Commit

Permalink
Correct Schema.org data for images
Browse files Browse the repository at this point in the history
See #185
  • Loading branch information
philwareham committed Nov 26, 2018
1 parent db62cfe commit 190739c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/templates/forms/article/blog.txp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
<txp:if_article_image>
<txp:images form="images" break="" />
<txp:else />
<meta itemprop="image" content="https://textpattern.com/assets/img/branding/textpattern/textpattern-og.png">
<meta itemprop="width" content="1200">
<meta itemprop="height" content="1200">
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://textpattern.com/assets/img/branding/textpattern/textpattern-og.png">
<meta itemprop="width" content="1200">
<meta itemprop="height" content="1200">
</span>
</txp:if_article_image>
<div class="article-body" itemprop="articleBody">
<txp:body />
Expand Down
8 changes: 5 additions & 3 deletions src/templates/forms/article/default.txp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
<txp:if_article_image>
<txp:images form="images" break="" />
<txp:else />
<meta itemprop="image" content="https://textpattern.com/assets/img/branding/textpattern/textpattern-og.png">
<meta itemprop="width" content="1200">
<meta itemprop="height" content="1200">
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://textpattern.com/assets/img/branding/textpattern/textpattern-og.png">
<meta itemprop="width" content="1200">
<meta itemprop="height" content="1200">
</span>
</txp:if_article_image>
</txp:if_section>
<div class="article-body" itemprop="articleBody">
Expand Down

0 comments on commit 190739c

Please sign in to comment.