From f4528dd087c0f2d84bdbafc236103831fa5362f2 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 5 Oct 2020 15:49:09 +0200 Subject: [PATCH] Correction affichage nom utilisateur dans la newsletter --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index c773539..d6f8c47 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -154,7 +154,7 @@ func NewDefault() *Config { BaseURL: "http://localhost:8080", ContentTemplate: dedent.Dedent(` {{- $root := . -}} - Bonjour {{ .User.Name }}, + Bonjour{{if .User.Name}} {{ .User.Name }}{{end}}, {{ if not .HasEvents -}} Aucun évènement notoire ces derniers jours.