From 6fba4903929410e87b15e658d6d68efbfc1cb738 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Wed, 14 Feb 2024 12:13:59 -0600 Subject: [PATCH] Add Twitter metadata --- src/website/jam.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/website/jam.go b/src/website/jam.go index e9c142ca..8d435ada 100644 --- a/src/website/jam.go +++ b/src/website/jam.go @@ -51,11 +51,14 @@ func JamIndex2024_Learning(c *RequestContext) ResponseData { baseData := getBaseDataAutocrumb(c, hmndata.LJ2024.Name) baseData.OpenGraphItems = []templates.OpenGraphItem{ + {Property: "og:title", Value: "Learning Jam"}, {Property: "og:site_name", Value: "Handmade Network"}, {Property: "og:type", Value: "website"}, {Property: "og:image", Value: hmnurl.BuildPublic("learningjam2024/2024LJOpenGraph.png", true)}, {Property: "og:description", Value: "A two-weekend jam where you dive deep into a topic, then teach it to the rest of the community."}, {Property: "og:url", Value: hmnurl.BuildJamIndex2024_Learning()}, + {Name: "twitter:card", Value: "summary_large_image"}, + {Name: "twitter:image", Value: hmnurl.BuildPublic("learningjam2024/2024LJTwitterCard.png", true)}, } type JamPageData struct {