Skip to content

Commit a9773c6

Browse files
authored
feat: add event end time to individual event page and OG images (graphql#1538)
1 parent 1652222 commit a9773c6

File tree

136 files changed

+10
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+10
-4
lines changed

src/templates/EventOgImageTemplate.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const EventOgImageTemplate = ({
1414
company: speaker.company,
1515
position: speaker.position,
1616
}))
17-
const { event_type, event_start: eventDate } = pageContext.event
17+
const { event_type, event_start, event_end } = pageContext.event
1818

1919
const eventType = event_type.endsWith("s")
2020
? event_type.slice(0, -1)
@@ -111,7 +111,7 @@ const EventOgImageTemplate = ({
111111
/>
112112
</svg>
113113

114-
{format(parseISO(eventDate), "EEEE, MMM d")}
114+
{format(parseISO(event_start), "EEEE, MMM d")}
115115
</span>
116116
<span style={{ display: "flex", alignItems: "center" }}>
117117
<svg
@@ -128,7 +128,10 @@ const EventOgImageTemplate = ({
128128
/>
129129
</svg>
130130

131-
{format(parseISO(eventDate), "hh:mmaaaa 'PDT'")}
131+
{format(parseISO(event_start), "hh:mmaaaa") +
132+
" - " +
133+
format(parseISO(event_end), "hh:mmaaaa") +
134+
" PDT"}
132135
</span>
133136
</div>
134137

src/templates/event.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export const EventComponent: FC<{
9090
/>
9191
</svg>
9292

93-
{format(parseISO(event.event_start), "hh:mmaaaa 'PDT'")}
93+
{format(parseISO(event.event_start), "hh:mmaaaa") +
94+
" - " +
95+
format(parseISO(event.event_end), "hh:mmaaaa") +
96+
" PDT"}
9497
</span>
9598
</div>
9699
<div className="space-y-5">

static/img/__og-image/abbottry.png

-18 Bytes
-29 Bytes

static/img/__og-image/amy1908.png

-9 Bytes
53 Bytes

static/img/__og-image/arkenflame.png

-21 Bytes
348 KB
-17 Bytes
317 KB
360 KB

static/img/__og-image/bsklar.png

-5 Bytes

static/img/__og-image/bsy.png

21 Bytes
369 KB

static/img/__og-image/david3103.png

349 KB

static/img/__og-image/doc.jones.png

15 Bytes
-4 Bytes

static/img/__og-image/en3m.png

20 Bytes
-10 Bytes

static/img/__og-image/gilgardosh.png

33 Bytes

static/img/__og-image/gonenj.png

-5 Bytes
0 Bytes
-45 Bytes

static/img/__og-image/jim.barton.png

-32 Bytes
320 KB
-12 Bytes

static/img/__og-image/keith.babo.png

101 KB

static/img/__og-image/laurent57.png

395 KB

static/img/__og-image/laurinquast.png

26 Bytes
-27 Bytes

static/img/__og-image/lerenzo.png

64 Bytes

static/img/__og-image/mgiroux7.png

343 KB

static/img/__og-image/michael2685.png

12 Bytes

static/img/__og-image/plgah.png

-13 Bytes
110 Bytes

static/img/__og-image/qkw1221.png

-11 Bytes

static/img/__og-image/s.daniakash.png

364 KB
-21 Bytes
385 KB

static/img/__og-image/spencer211.png

-1 Bytes
-37 Bytes
-43 Bytes

static/img/__og-image/tanmaig.png

-64 Bytes
256 KB
-10 Bytes
-111 Bytes

static/img/__og-image/twitter7.png

-9 Bytes
-38 Bytes
362 KB

static/img/__og-image/yaacovcr.png

-3.88 KB
-73 Bytes

0 commit comments

Comments
 (0)