Skip to content

Commit 84f3a54

Browse files
committed
Schema microdata for geo location
1 parent 2d5ea2a commit 84f3a54

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

templates/pages/contact.txp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@
8181
<txp:if_variable name="--contact-map-latitude" not value="">
8282
<txp:if_variable name="--contact-map-longitude" not value="">
8383
<txp:variable name="longitude-latitude-defined" value="1" />
84-
<span class="geo">
85-
<meta class="latitude" content="<txp:variable name="--contact-map-latitude" />">
86-
<meta class="longitude" content="<txp:variable name="--contact-map-longitude" />">
84+
<span itemscope itemtype="https://schema.org/Place">
85+
<meta itemprop="name" content="<txp:variable name="--site-org" /><txp:if_variable name="--contact-organization-unit" not value=""> <txp:variable name="--contact-organization-unit" /></txp:if_variable>">
86+
<span class="geo" itemprop="geo" itemscope itemtype="https://schema.org/GeoCoordinates">
87+
<meta class="latitude" itemprop="latitude" content="<txp:variable name="--contact-map-latitude" />">
88+
<meta class="longitude" itemprop="longitude" content="<txp:variable name="--contact-map-longitude" />">
89+
</span>
8790
</span>
8891
</txp:if_variable>
8992
</txp:if_variable>

themes/hive-framework-0.0.9/pages/contact.txp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@
8181
<txp:if_variable name="--contact-map-latitude" not value="">
8282
<txp:if_variable name="--contact-map-longitude" not value="">
8383
<txp:variable name="longitude-latitude-defined" value="1" />
84-
<span class="geo">
85-
<meta class="latitude" content="<txp:variable name="--contact-map-latitude" />">
86-
<meta class="longitude" content="<txp:variable name="--contact-map-longitude" />">
84+
<span itemscope itemtype="https://schema.org/Place">
85+
<meta itemprop="name" content="<txp:variable name="--site-org" /><txp:if_variable name="--contact-organization-unit" not value=""> <txp:variable name="--contact-organization-unit" /></txp:if_variable>">
86+
<span class="geo" itemprop="geo" itemscope itemtype="https://schema.org/GeoCoordinates">
87+
<meta class="latitude" itemprop="latitude" content="<txp:variable name="--contact-map-latitude" />">
88+
<meta class="longitude" itemprop="longitude" content="<txp:variable name="--contact-map-longitude" />">
89+
</span>
8790
</span>
8891
</txp:if_variable>
8992
</txp:if_variable>

0 commit comments

Comments
 (0)