Latest version
This commit is contained in:
parent
eb9711a4da
commit
5c18b9938d
3 changed files with 3 additions and 3 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue