aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/base.html
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 17:36:27 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 17:36:27 +0200
commitdfca0f5bbebfe11d9c5d8bf6584bd1bf80d62274 (patch)
treee033bb57affecf03fc03b678b3a876377441de9f /backend/templates/base.html
parenta471baf6ee1b1a05acec23f2de1b74f56f4596a5 (diff)
feat(backend): og and twitter seo
Diffstat (limited to 'backend/templates/base.html')
-rw-r--r--backend/templates/base.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/templates/base.html b/backend/templates/base.html
index c994cac..922273e 100644
--- a/backend/templates/base.html
+++ b/backend/templates/base.html
@@ -5,6 +5,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/assets/styles.css">
+ <meta property="description" content="{{ .Description }}" />
+ <!-- Open Graph -->
+ <meta property="og:title" content="{{ .Title }}" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://{{ .Domain }}{{ .URL }}" />
+ <meta property="og:image" content="https://{{ .Domain }}{{ static .Image }}" />
+ <meta property="og:description" content="{{ .Description }}" />
+ <meta property="og:local" content="fr_FR" />
+ <meta property="og:site_name" content="{{ .Title }}'s Now page" />
+ <!-- Twitter -->
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta property="twitter:domain" content="{{ .Domain }}" />
+ <meta property="twitter:url" content="https://{{ .Domain }}{{ .URL }}/" />
+ <meta name="twitter:title" content="{{ .Title }}" />
+ <meta name="twitter:description" content="{{ .Description }}" />
+ <meta name="twitter:image" content="https://{{ .Domain }}{{ static .Image }}" />
</head>
<body>
<header>