From f9464729d0775341a5bec5a0ae38bea1ad64bded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 15:58:21 +0200 Subject: feat(now): do not display title if field is empty --- templates/page/now.gohtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page/now.gohtml b/templates/page/now.gohtml index 5286f87..96c8b77 100644 --- a/templates/page/now.gohtml +++ b/templates/page/now.gohtml @@ -9,7 +9,9 @@
{{ range $now := .Person.Now }}
-

{{ .Name }}

+ {{ if ne .Name "" }} +

{{ .Name }}

+ {{ end }}

{{ .Description }}

{{ if and (ne .Link "") (ne .LinkName "") }}

{{ .LinkName }}

-- cgit v1.2.3