mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2025-06-07 22:11:29 +02:00
Optimized _layouts. Merged most js libraries into one
This commit is contained in:
parent
b17812e89f
commit
84c47e3584
34 changed files with 397 additions and 682 deletions
71
_includes/schema-event.html
Normal file
71
_includes/schema-event.html
Normal file
|
@ -0,0 +1,71 @@
|
|||
<script type="application/ld+json">
|
||||
[{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "Event",
|
||||
"name" : "{{ site.title }}",
|
||||
"description": "{{ site.description }}",
|
||||
"image" : "{{ site.socialImageSrcGooglePlus | prepend: site.baseurl | prepend: site.url }}",
|
||||
"url" : "{{ site.url }}",
|
||||
"startDate" : "{{ site.eventStartTime }}",
|
||||
"doorTime" : "{{ site.eventDoorTime }}",
|
||||
"endDate" : "{{ site.eventEndTime }}",
|
||||
"location" : {
|
||||
"@type" : "Place",
|
||||
"name" : "{{ site.eventLocationName }}",
|
||||
"sameAs" : "{{ site.eventLocationLink }}",
|
||||
"address" : {
|
||||
"@type" : "PostalAddress",
|
||||
"streetAddress" : "{{ site.eventStreetAddress }}",
|
||||
"addressLocality" : "{{ site.eventAddressLocality }}",
|
||||
"addressRegion" : "{{ site.eventAddressLocalityRegion }}",
|
||||
"postalCode" : "{{ site.eventPostalCode }}",
|
||||
"addressCountry" : "{{ site.eventAddressCountry }}"
|
||||
},
|
||||
"geo" : {
|
||||
"@type" : "GeoCoordinates",
|
||||
{% assign coordinates = site.eventPlaceCoordinates | split:"," %}
|
||||
"latitude" : "{{ coordinates[0] }}",
|
||||
"longitude" : "{{ coordinates[1] }}"
|
||||
}
|
||||
},
|
||||
// Not supported yet
|
||||
// "organizer" : {
|
||||
// "@type" : "Organization",
|
||||
// "name" : "{{ site.organizerName }}",
|
||||
// "alternateName" : "{{ site.organizerAlternateName }}",
|
||||
// "description" : "{{ site.organizerDescription }}",
|
||||
// "logo" : "{{ site.organizerLogo | prepend: site.baseurl | prepend: site.url }}",
|
||||
// "email" : "{{ site.organizerEmail }}",
|
||||
// "sameAs" : "{{ site.organizerLink }}"
|
||||
// },
|
||||
"offers" : [
|
||||
{% for ticketsOffer in site.ticketsOffers %}
|
||||
{
|
||||
"@type" : "Offer",
|
||||
"name" : "{{ ticketsOffer.name }}",
|
||||
"url" : "{{ ticketsOffer.buyButtonLink }}",
|
||||
"price" : "{{ ticketsOffer.price }}",
|
||||
"validFrom" : "{{ ticketsOffer.validFrom }}",
|
||||
"validThrough" : "{{ ticketsOffer.validThrough }}"
|
||||
}{% if forloop.index != forloop.length %},{% endif %}
|
||||
{% endfor %}
|
||||
],
|
||||
"performer" : [
|
||||
{% for speaker in site.data.speakers %}
|
||||
{
|
||||
"@type" : "Person",
|
||||
"name" : "{{ speaker.name }} {{ speaker.surname }}",
|
||||
"image" : "{{ speaker.thumbnailUrl | prepend: site.thumbnailsFolder | prepend: site.baseurl | prepend: site.url }}",
|
||||
"jobTitle" : "{{ speaker.title }}",
|
||||
"worksFor" : {
|
||||
"@type" : "Organization",
|
||||
"name" : "{{ speaker.company }}"
|
||||
},
|
||||
"sameAs" : "{{ speaker.social[0].link }}"
|
||||
}{% if forloop.index != forloop.length %},{% endif %}
|
||||
{% endfor %}
|
||||
],
|
||||
"eventStatus" : "EventScheduled",
|
||||
"typicalAgeRange" : "16+"
|
||||
}]
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue