Latest version

This commit is contained in:
m15o 2022-02-12 08:41:53 +01:00
parent eb9711a4da
commit 5c18b9938d
3 changed files with 3 additions and 3 deletions

View file

@ -383,7 +383,7 @@ var TplMap = map[string]string{
<dt>Email</dt>
<dd>
{{ if .email }}
<a href="{{ .email }}" target="_blank">{{ .email }}</a></dd>
<a href="mailto:{{ .email }}" target="_blank">{{ .email }}</a></dd>
{{ else }}
Not defined
{{ end }}

View file

@ -23,7 +23,7 @@
<dt>Email</dt>
<dd>
{{ if .email }}
<a href="{{ .email }}" target="_blank">{{ .email }}</a></dd>
<a href="mailto:{{ .email }}" target="_blank">{{ .email }}</a></dd>
{{ else }}
Not defined
{{ end }}

View file

@ -16,7 +16,7 @@ func (h *Handler) initTpl() {
for name, content := range TplMap {
views[name] = template.Must(template.New("main").Funcs(template.FuncMap{
"faces": func() []string {
return []string{"🙂", "😎", "😛", "🥰", "❤️", "👽", "😱", "🤔", "😯", "🤒", "😡", "🥺", "🥳", "🤖", "💀", "😴", "😭", "🤐", "💾", "👀", "☕", "🍺", "📖", "🔥", "❄️", "✨", "💡", "🎶", "✈️", "🚄", "🍿", "📰", "✏️", "🍱", "🎄", "🎁", "🌧️", "🌙", "🎨", "📺", "🍕", "✅"}
return []string{"🙂", "😎", "😛", "🥰", "❤️", "👽", "😱", "🤔", "😯", "🤒", "😡", "🥺", "🥳", "🤖", "💀", "😴", "😭", "🤐", "💾", "👀", "☕", "🍺", "📖", "🔥", "❄️", "✨", "💡", "🎶", "✈️", "🚄", "🍿", "📰", "✏️", "🍱", "", "🎁", "🌧️", "🌙", "🎨", "📺", "🍕", "✅"}
}}).Parse(commonTemplates + content))
}
}