aboutsummaryrefslogtreecommitdiff
path: root/templates/page
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-09-07 15:58:21 +0200
committerWilliam Hergès <william@herges.fr>2025-09-07 15:58:21 +0200
commitf9464729d0775341a5bec5a0ae38bea1ad64bded (patch)
tree3353a9730b4eccd1374380083aa8b969444e2e14 /templates/page
parentfdf8c390e91ef02c05a95fa1f8c1c9104ffbabf5 (diff)
feat(now): do not display title if field is empty
Diffstat (limited to 'templates/page')
-rw-r--r--templates/page/now.gohtml4
1 files changed, 3 insertions, 1 deletions
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 @@
<div class="tags" style="{{ .Color.GetTagColor }}">
{{ range $now := .Person.Now }}
<div class="tag">
- <h4>{{ .Name }}</h4>
+ {{ if ne .Name "" }}
+ <h4>{{ .Name }}</h4>
+ {{ end }}
<p>{{ .Description }}</p>
{{ if and (ne .Link "") (ne .LinkName "") }}
<p><a href="{{ .Link }}">{{ .LinkName }}</a></p>