houdini/app/views/events/_schema.html.erb
2020-06-15 10:26:57 -05:00

25 lines
912 B
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Event",
"name": "<%= event.name %>",
"description": "<%= event.tagline %>",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "<%= event.city %>",
"addressRegion": "<%= event.state_code %>",
"postalCode": "<%= event.zip_code %>",
"streetAddress": "<%= event.address %>"
},
"name": "<%= event.venue_name %>",
"url": "http://maps.google.com/?q=<%= Format::Address.full_address(@event.address, @event.city, @event.state_code, @event.zip_code) %>"
},
"startDate": "<%= Format::Date.full(@event.start_datetime, @event.nonprofit.timezone) %>",
"url": "<%= url %>"
}
</script>