diff options
author | Alan Pearce | 2017-05-06 17:54:59 +0200 |
---|---|---|
committer | Alan Pearce | 2017-05-06 17:55:51 +0200 |
commit | 8e1c2c6e9ef67a4a243efabbabfed6a937cebd1b (patch) | |
tree | 9c788f3938fc195955334d2535883cd2b49848f9 /layouts/partials/sidebar.html | |
parent | df6e95df7d810d47bf767c4073ed5427d884bf30 (diff) | |
download | hyde-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.html | 11 |
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> |