diff --git a/config.go b/config.go index 180e6e8..08e59ad 100644 --- a/config.go +++ b/config.go @@ -110,6 +110,7 @@ type configUser struct { Name string `mapstructure:"name"` Password string `mapstructure:"password"` Picture string `mapstructure:"picture"` + Emoji string `mapstructure:"emoji"` Link string `mapstructure:"link"` } diff --git a/templates/base.gohtml b/templates/base.gohtml index fd439f2..02372c2 100644 --- a/templates/base.gohtml +++ b/templates/base.gohtml @@ -5,7 +5,14 @@ - {{ with user.Picture }}{{ end }} + {{ if user.Emoji }} + + {{ if user.Picture }} + + {{ end }} + {{ else if user.Picture }} + + {{ end }} {{ with .Canonical }}{{ end }} {{ template "title" . }}