diff options
| author | William Hergès <william@herges.fr> | 2025-09-07 15:58:21 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-07 15:58:21 +0200 |
| commit | f9464729d0775341a5bec5a0ae38bea1ad64bded (patch) | |
| tree | 3353a9730b4eccd1374380083aa8b969444e2e14 /templates/page | |
| parent | fdf8c390e91ef02c05a95fa1f8c1c9104ffbabf5 (diff) | |
feat(now): do not display title if field is empty
Diffstat (limited to 'templates/page')
| -rw-r--r-- | templates/page/now.gohtml | 4 |
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> |
