Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Sep 20, 2024
1 parent 5a5fc91 commit f351f4b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions events/templates/events/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ <h1>{{ event.title }}</h1>
{% block extra_js %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "{{ event.title|escapejs }}",
"startDate": "{% if event.start_date %}{{ event.start_date|date:'c' }}{% endif %}",
"endDate": "{% if event.end_date %}{{ event.end_date|date:'c' }}{% endif %}",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
"description": "{{ event.body|striptags|escapejs }}",
"url": "{{ request.build_absolute_uri }}",
"eventCategory": "{{ event.get_category_display|escapejs }}", <!-- Dynamic event category based on choices -->
"eventWebsite": "{% if event.website %}{{ event.website }}{% endif %}"
"@context": "https://schema.org",
"@type": "Event",
"name": "{{ event.title|escapejs }}",
"startDate": "{% if event.start_date %}{{ event.start_date|date:'c' }}{% endif %}",
"endDate": "{% if event.end_date %}{{ event.end_date|date:'c' }}{% endif %}",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
"description": "{{ event.body|striptags|escapejs }}",
"url": "{{ request.build_absolute_uri }}",
"eventCategory": "{{ event.get_category_display|escapejs }}", <!-- Dynamic event category based on choices -->
"eventWebsite": "{% if event.website %}{{ event.website }}{% endif %}"
}
</script>
{% endblock %}

0 comments on commit f351f4b

Please sign in to comment.