From 240b9fb620fac7a3a140aac86b847797151acf6a Mon Sep 17 00:00:00 2001 From: ResendeTech <142721352+ResendeTech@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:42:29 +0300 Subject: [PATCH] Added metadata to events page (#1119) * Added metadata to events page * change the metadata into a nextjs block and fixed formatting of the file * Formatted the code * Format * Cleanup comment --------- Co-authored-by: Brylie Christopher Oxley --- events/templates/events/event.html | 50 ++++++++++++++++++------------ 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/events/templates/events/event.html b/events/templates/events/event.html index 2e12f1cf..5ee0673f 100644 --- a/events/templates/events/event.html +++ b/events/templates/events/event.html @@ -1,30 +1,30 @@ -{% extends "base.html" %} +{% extends 'base.html' %} {% load tz %} {% load static wagtailcore_tags %} -{% block body_class %}template-event{% endblock %} +{% block body_class %} + template-event +{% endblock %} -{% block title %}{{ page.title }}{% endblock %} +{% block title %} + {{ page.title }} +{% endblock %} {% block content %} - - Events - + Events

{{ event.title }}

{% if event.start_date %} - {{ event.start_date | timezone:"US/Pacific" | date:"F d, Y, f A" }} + {{ event.start_date|timezone:'US/Pacific'|date:'F d, Y, f A' }} {% endif %} {% if event.end_date %} - - {{ event.end_date | timezone:"US/Pacific" | date:"F d, Y, f A" }} - {% endif %} - - US/Pacific + {{ event.end_date|timezone:'US/Pacific'|date:'F d, Y, f A' }} + {% endif %}US/Pacific

{% if event.sponsors.all %} @@ -32,8 +32,7 @@

{{ event.title }}

{% for sponsor in event.sponsors.all %} {% if sponsor.sponsor.live %} - - {{ sponsor.sponsor }}{% if not forloop.last %},{% endif %} + {{ sponsor.sponsor }}{% if not forloop.last %},{% endif %} {% else %} {{ sponsor.sponsor }}{% if not forloop.last %},{% endif %} {% endif %} @@ -41,19 +40,32 @@

{{ event.title }}

{% endif %} - {% if event.body %} {{ event.body }} {% endif %} {% if event.website %} - + Visit event website {% endif %} {% endblock %} + +{% block extra_js %} + +{% endblock %}