diff options
author | 2017-11-25 17:08:04 -0800 | |
---|---|---|
committer | 2017-11-25 17:08:04 -0800 | |
commit | 29c5d8201653d8a2fd33b4c1b5dc31cc15ca1091 (patch) | |
tree | ac6be4c560d869358a6d61548a841924b9f2fe43 /server/template/html | |
parent | 39b03cc393da657b11dbf25e51e2495f8739e491 (diff) |
Add template helper isEmail()
Diffstat (limited to 'server/template/html')
-rw-r--r-- | server/template/html/entry.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/template/html/entry.html b/server/template/html/entry.html index 3bb296f..e832b27 100644 --- a/server/template/html/entry.html +++ b/server/template/html/entry.html @@ -15,7 +15,7 @@ </span> {{ if .entry.Author }} <span class="entry-author"> - {{ if contains .entry.Author "@" }} + {{ if isEmail .entry.Author }} - <a href="mailto:{{ .entry.Author }}">{{ .entry.Author }}</a> {{ else }} – <em>{{ .entry.Author }}</em> |