diff options
author | Alan Pearce | 2017-06-17 16:52:28 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-17 16:52:28 +0200 |
commit | 097c6c42dc00bb730581a79b9daa11f0f2e63969 (patch) | |
tree | fbf794ce0fd71db68e1cdbd2c573bd0aaa00e05a /layouts/partials/sidebar.html | |
parent | f3b3cc3312db39b418cdd53d0399edc744d52c88 (diff) | |
download | hyde-097c6c42dc00bb730581a79b9daa11f0f2e63969.tar.lz hyde-097c6c42dc00bb730581a79b9daa11f0f2e63969.tar.zst hyde-097c6c42dc00bb730581a79b9daa11f0f2e63969.zip |
Fix email check
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r-- | layouts/partials/sidebar.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c603a93..ba935ae 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -23,7 +23,7 @@ <ul class="contact-list"> {{ range .Site.Menus.contact }} <li> - {{ if (isset . "isEmail") }} + {{ if hasPrefix .URL "mailto:" }} <a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a> {{ else }} <a href="{{ .URL }}" itemprop="url" rel="me">{{ .Name }}</a> |