diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 17:36:27 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 17:36:27 +0200 |
| commit | dfca0f5bbebfe11d9c5d8bf6584bd1bf80d62274 (patch) | |
| tree | e033bb57affecf03fc03b678b3a876377441de9f /backend/templates | |
| parent | a471baf6ee1b1a05acec23f2de1b74f56f4596a5 (diff) | |
feat(backend): og and twitter seo
Diffstat (limited to 'backend/templates')
| -rw-r--r-- | backend/templates/base.html | 16 |
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> |
