add more meta to html

This commit is contained in:
2025-05-11 00:08:20 +01:00
parent 5b11ad9f4b
commit 10647ab0a3
4 changed files with 19 additions and 7 deletions

View File

@@ -2,7 +2,12 @@
<html lang="en">
<head>
<title>7am Weather</title>
<title>7am weather for {{.LocationName}}</title>
<meta name="twitter:card" content="summary" />
<meta property="og:title" content="7am Weather">
<meta property="og:description" content="Weather summary for {{.LocationName}}">
<meta property="og:image" content="/hero.png">
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="manifest" href="/manifest.json">
@@ -20,7 +25,7 @@
<main>
<a class="back-link" href="/">&lt;- All locations</a>
<p class="summary">{{.Summary}}</p>
<button type="button" id="get-summary-btn" data-loc="{{.Location}}">Get daily updates at 7am</button>
<button type="button" id="get-summary-btn" data-loc="{{.Location}}">Get daily summary at 7am</button>
</main>
</div>
<script src="/summary.js"></script>