aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/base.html
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-02-05 16:13:01 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-02-05 16:13:01 +0100
commited3812eeb6daa45a98d8d513a8de49b385c4831c (patch)
treeb3a6b309e2892997185d6c572a0b7bc0034b5025 /backend/templates/base.html
parent26b879bf95d801c337b194b1af4aa07c167729a6 (diff)
feat(template): remove image if nothing is set in SEO
Diffstat (limited to 'backend/templates/base.html')
-rw-r--r--backend/templates/base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/templates/base.html b/backend/templates/base.html
index 24d7b1b..cbb0e71 100644
--- a/backend/templates/base.html
+++ b/backend/templates/base.html
@@ -13,7 +13,9 @@
<meta name="og:title" content="{{ .Title }}" />
<meta name="og:type" content="website" />
<meta name="og:url" content="https://{{ .Domain }}{{ .URL }}" />
- <meta name="og:image" content="{{ fullStatic .Image }}" />
+ {{ if ne (len .Image) 0 }}
+ <meta name="og:image" content="{{ fullStatic .Image }}" />
+ {{ end }}
<meta name="og:description" content="{{ .PageDescription }}" />
<meta name="og:local" content="fr_FR" />
<meta name="og:site_name" content="{{ .Name }}" />