Opengraph images, and fix day-of-week references

This commit is contained in:
Jake Mason 2023-03-05 20:40:22 -05:00
parent 526a588a19
commit 4bb562823e
6 changed files with 7 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

View File

@ -8,8 +8,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" sizes="16x16" href="{{ static "wheeljam2022/favicon-16x16.png" }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ static "wheeljam2022/favicon-32x32.png" }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ static "visualjam2023/favicon-16x16.png" }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ static "visualjam2023/favicon-32x32.png" }}">
{{ if .CanonicalLink }}<link rel="canonical" href="{{ .CanonicalLink }}">{{ end }}
{{ range .OpenGraphItems }}

View File

@ -21,8 +21,8 @@ $discordInviteURL := "https://discord.gg/hmn" }}
<h1 id="title">Visualization Jam</h1>
<h2 id="dates">April 14 - 16, 2O23</h2>
<div id="tagline" class="center">
A one-week jam to change the status quo. {{ if gt .DaysUntilEnd 0 }} {{ if
eq .DaysUntilStart 0 }}
A jam to see things in a new way. {{ if gt .DaysUntilEnd 0 }} {{ if eq
.DaysUntilStart 0 }}
<b>Happening now.</b>
{{ else if eq .DaysUntilStart 1 }}
<b>Starting tomorrow.</b>
@ -236,8 +236,8 @@ $discordInviteURL := "https://discord.gg/hmn" }}
<div class="section mw8 margin-center ph3 ph4-l">
<h2>How to participate</h2>
<p>
The jam takes place from Friday, April 14 through Sunday, April 16. Here's
how you can participate:
The jam takes place from April 14 through April 16. Here's how you can
participate:
</p>
<div class="{{ if gt .DaysUntilStart 0 }}emphasized{{ end }}">

View File

@ -22,7 +22,7 @@ func VisualizationIndex2023(c *RequestContext) ResponseData {
{Property: "og:site_name", Value: "Handmade.Network"},
{Property: "og:type", Value: "website"},
// TODO:
{Property: "og:image", Value: hmnurl.BuildPublic("wheeljam2022/opengraph.png", true)},
{Property: "og:image", Value: hmnurl.BuildPublic("visualjam2023/opengraph.png", true)},
{Property: "og:description", Value: "See things in a new way. April 14 - 16."},
{Property: "og:url", Value: hmnurl.BuildJamIndex()},
}