diff --git a/public/timemachine/opengraph.png b/public/timemachine/opengraph.png new file mode 100644 index 00000000..e7a7af9a Binary files /dev/null and b/public/timemachine/opengraph.png differ diff --git a/public/timemachine/splash.afphoto b/public/timemachine/splash.afphoto deleted file mode 100644 index e6705fde..00000000 Binary files a/public/timemachine/splash.afphoto and /dev/null differ diff --git a/public/timemachine/twittercard.png b/public/timemachine/twittercard.png new file mode 100644 index 00000000..db5bc13f Binary files /dev/null and b/public/timemachine/twittercard.png differ diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index 25492a97..b2691e5a 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -105,11 +105,11 @@ func BuildJamFeed2022() string { return Url("/jam/2022/feed", nil) } -var RegexTimeMachine = regexp.MustCompile("^/time-machine$") +var RegexTimeMachine = regexp.MustCompile("^/timemachine$") func BuildTimeMachine() string { defer CatchPanic() - return Url("/time-machine", nil) + return Url("/timemachine", nil) } // QUESTION(ben): Can we change these routes? diff --git a/src/website/staticpages.go b/src/website/staticpages.go index 6a0a5b3f..e91cc73d 100644 --- a/src/website/staticpages.go +++ b/src/website/staticpages.go @@ -89,7 +89,19 @@ func Conferences(c *RequestContext) ResponseData { } func TimeMachine(c *RequestContext) ResponseData { + baseData := getBaseDataAutocrumb(c, "Time Machine") + baseData.OpenGraphItems = []templates.OpenGraphItem{ + {Property: "og:title", Value: "Time Machine"}, + {Property: "og:site_name", Value: "Handmade Network"}, + {Property: "og:type", Value: "website"}, + {Property: "og:image", Value: hmnurl.BuildPublic("timemachine/opengraph.png", true)}, + {Property: "og:description", Value: "This summer, dig out your old devices and see what they were actually like to use."}, + {Property: "og:url", Value: hmnurl.BuildTimeMachine()}, + {Name: "twitter:card", Value: "summary_large_image"}, + {Name: "twitter:image", Value: hmnurl.BuildPublic("timemachine/twittercard.png", true)}, + } + var res ResponseData - res.MustWriteTemplate("time-machine.html", getBaseDataAutocrumb(c, "Time Machine"), c.Perf) + res.MustWriteTemplate("time-machine.html", baseData, c.Perf) return res }