about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
authorAlan Pearce2017-06-17 16:52:28 +0200
committerAlan Pearce2017-06-17 16:52:28 +0200
commit097c6c42dc00bb730581a79b9daa11f0f2e63969 (patch)
treefbf794ce0fd71db68e1cdbd2c573bd0aaa00e05a /layouts
parentf3b3cc3312db39b418cdd53d0399edc744d52c88 (diff)
downloadhyde-097c6c42dc00bb730581a79b9daa11f0f2e63969.tar.lz
hyde-097c6c42dc00bb730581a79b9daa11f0f2e63969.tar.zst
hyde-097c6c42dc00bb730581a79b9daa11f0f2e63969.zip
Fix email check
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/sidebar.html2
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>