mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Add template helper isEmail()
This commit is contained in:
parent
39b03cc393
commit
29c5d82016
3 changed files with 12 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue