From ed3812eeb6daa45a98d8d513a8de49b385c4831c Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 5 Feb 2026 16:13:01 +0100 Subject: feat(template): remove image if nothing is set in SEO --- backend/templates/base.html | 4 +++- backend/templates/components.html | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'backend/templates') 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 @@ - + {{ if ne (len .Image) 0 }} + + {{ end }} diff --git a/backend/templates/components.html b/backend/templates/components.html index dff4626..b249706 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -16,7 +16,7 @@ {{ define "data_display" }}
- {{ .Img.Alt }} + {{ .Img.Alt }}
{{ .Img.Legend }}
@@ -26,15 +26,15 @@
{{ end }} {{ define "section_pagination" }} - {{ end }} {{ define "section_display--no-first" }}
-- cgit v1.2.3