From c1d05c679fc99aab259707d34a2228bdc3aa320c Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Fri, 4 Dec 2020 22:47:50 +0100 Subject: [PATCH] Emoji favicons --- config.go | 1 + templates/base.gohtml | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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" . }}