Fix formatting of event location
This commit is contained in:
parent
d56bf4f265
commit
71de72db40
1 changed files with 2 additions and 0 deletions
|
|
@ -41,12 +41,14 @@
|
|||
<ul itemprop="location" itemscope itemtype="http://schema.org/Location">
|
||||
<li itemprop="name"><% if item[:location][:url] %><a itemprop="url" href="<%= item[:location][:url] %>"><%= item[:location][:name] %></a><% else %><%= item[:location][:name] %><% end %></li>
|
||||
<% if item[:location][:details] %><li><%= item[:location][:details] %></li><% end %>
|
||||
<% if item[:location][:strasse] || item[:location][:ort] %>
|
||||
<li itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<ul class="commaseparated">
|
||||
<% if item[:location][:strasse] %><li itemprop="streetAddress"><%= item[:location][:strasse] %></li><% end %>
|
||||
<% if item[:location][:ort] %><li><span itemprop="postalCode"><%= item[:location][:plz] %></span> <span itemProp="addressLocality"><%= item[:location][:ort] %></span></li><% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if item[:location][:lon] %>
|
||||
<li>
|
||||
<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue