Skip to content

Commit 50f6066

Browse files
committed
Expanded Schema.org media items
1 parent 0f6e4a4 commit 50f6066

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/four-point-seven/forms/file/files.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div itemscope itemtype="https://schema.org/DataDownload">
22

33
<!-- ...if exists, use the file title, otherwise use file name -->
4-
<a href="<txp:file_download_link />" itemprop="url">
4+
<a href="<txp:file_download_link />" itemprop="url contentUrl">
55
<strong itemprop="name">
66
<txp:evaluate>
77
<txp:file_download_name title />

dist/four-point-seven/forms/misc/images.txp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<txp:if_variable name="caption" value="">
66

77
<p itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
8-
<img itemprop="url" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
8+
<img itemprop="url contentUrl" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
99
<meta itemprop="width" content="<txp:image_info type="w" />">
1010
<meta itemprop="height" content="<txp:image_info type="h" />">
1111
</p>
@@ -14,7 +14,7 @@
1414

1515
<figure itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
1616

17-
<img itemprop="url" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
17+
<img itemprop="url contentUrl" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
1818
<meta itemprop="width" content="<txp:image_info type="w" />">
1919
<meta itemprop="height" content="<txp:image_info type="h" />">
2020

src/templates/forms/file/files.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div itemscope itemtype="https://schema.org/DataDownload">
22

33
<!-- ...if exists, use the file title, otherwise use file name -->
4-
<a href="<txp:file_download_link />" itemprop="url">
4+
<a href="<txp:file_download_link />" itemprop="url contentUrl">
55
<strong itemprop="name">
66
<txp:evaluate>
77
<txp:file_download_name title />

src/templates/forms/misc/images.txp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<txp:if_variable name="caption" value="">
66

77
<p itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
8-
<img itemprop="url" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
8+
<img itemprop="url contentUrl" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
99
<meta itemprop="width" content="<txp:image_info type="w" />">
1010
<meta itemprop="height" content="<txp:image_info type="h" />">
1111
</p>
@@ -14,7 +14,7 @@
1414

1515
<figure itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
1616

17-
<img itemprop="url" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
17+
<img itemprop="url contentUrl" src="<txp:image_url link='0' />" alt="<txp:image_info type='alt' />">
1818
<meta itemprop="width" content="<txp:image_info type="w" />">
1919
<meta itemprop="height" content="<txp:image_info type="h" />">
2020

0 commit comments

Comments
 (0)