aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/template/html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-11-25 17:08:04 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-11-25 17:08:04 -0800
commit29c5d8201653d8a2fd33b4c1b5dc31cc15ca1091 (patch)
treeac6be4c560d869358a6d61548a841924b9f2fe43 /server/template/html
parent39b03cc393da657b11dbf25e51e2495f8739e491 (diff)
Add template helper isEmail()
Diffstat (limited to 'server/template/html')
-rw-r--r--server/template/html/entry.html2
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>