about summary refs log tree commit diff stats
path: root/layouts/partials/sidebar.html
diff options
context:
space:
mode:
authorAlan Pearce2017-05-06 17:54:59 +0200
committerAlan Pearce2017-05-06 17:55:51 +0200
commit8e1c2c6e9ef67a4a243efabbabfed6a937cebd1b (patch)
tree9c788f3938fc195955334d2535883cd2b49848f9 /layouts/partials/sidebar.html
parentdf6e95df7d810d47bf767c4073ed5427d884bf30 (diff)
downloadhyde-8e1c2c6e9ef67a4a243efabbabfed6a937cebd1b.tar.lz
hyde-8e1c2c6e9ef67a4a243efabbabfed6a937cebd1b.tar.zst
hyde-8e1c2c6e9ef67a4a243efabbabfed6a937cebd1b.zip
feat: Use hugo Menu for contact links
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index d04205a..c603a93 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -21,9 +21,14 @@
 				<aside class="contact">
 					<h3 class="contact-head">Contact me</h3>
 					<ul class="contact-list">
-						<li><a class="u-email email" href="mailto:alan@alanpearce.uk" rel="me"><span itemprop="email">alan@alanpearce.uk</span></a></li>
-						{{ range $text, $uri := .Site.Params.author.urls }}
-						<li><a itemprop="url" href="{{ $uri }}" rel="me">{{ $text }}</a></li>
+						{{ range .Site.Menus.contact }}
+						<li>
+							{{ if (isset . "isEmail") }}
+							<a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a>
+							{{ else }}
+							<a href="{{ .URL }}" itemprop="url" rel="me">{{ .Name }}</a>
+						{{ end }}
+						</li>
 						{{ end }}
 					</ul>
 				</aside>