diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/social.html | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 42780a8..53d98ff 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -1,65 +1,63 @@ <aside id="social"> <div id="social-icons"> - {{ with .Site.Params.EmailAddress }} + {{ if isset .Site.Params "emailaddress" }} <div class="icon-24x24"> - <a class="glyph" alt="Email me" href="mailto:{{ . }}"><img src="/icons/envelope.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Email me" href="mailto:{{ .Site.Params.EmailAddress }}"><img src="{{ .Site.BaseURL }}icons/envelope.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.FacebookUser }} + {{ if isset .Site.Params "facebookuser" }} <div class="icon-24x24"> - <a class="glyph" alt="Facebook profile" href="{{ . }}"><img src="/icons/facebook.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Facebook profile" href="{{ .Site.Params.FacebookUser }}"><img src="{{ .Site.BaseURL }}icons/facebook.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.FlickrUser }} + {{ if isset .Site.Params "flickruser" }} <div class="icon-24x24"> - <a class="glyph" alt="Flickr profile" href="https://flickr.com/people/{{ . }}"><img src="/icons/flickr.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Flickr profile" href="https://flickr.com/people/{{ .Site.Params.FlickrUser }}"><img src="{{ .Site.BaseURL }}icons/flickr.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.GitHubUser }} + {{ if isset .Site.Params "githubuser" }} <div class="icon-24x24"> - <a class="glyph" alt="GitHub profile" href="https://github.com/{{ . }}"><img src="/icons/github.svg" height="24px" width="24px"></a> + <a class="glyph" alt="GitHub profile" href="https://github.com/{{ .Site.Params.GitHubUser }}"><img src="{{ .Site.BaseURL }}icons/github.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.GitLabUser }} + {{ if isset .Site.Params "gitlabuser" }} <div class="icon-24x24"> - <a class="glyph" alt="GitLab profile" href="https://gitlab.com/{{ . }}"><img src="/icons/gitlab.svg" height="24px" width="24px"></a> + <a class="glyph" alt="GitLab profile" href="https://gitlab.com/{{ .Site.Params.GitLabUser }}"><img src="{{ .Site.BaseURL }}icons/gitlab.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.GlitchUser }} + {{ if isset .Site.Params "glitchuser" }} <div class="icon-24x24"> - <a class="glyph" alt="Glitch profile" href="https://glitch.com/@{{ . }}"><img src="/icons/glitch.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Glitch profile" href="https://glitch.com/@{{ .Site.Params.GlitchUser }}"><img src="{{ .Site.BaseURL }}icons/glitch.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.KeybaseUser }} + {{ if isset .Site.Params "keybaseuser" }} <div class="icon-24x24"> - <a class="glyph" alt="Keybase profile" href="https://keybase.io/{{ . }}"><img src="/icons/keybase.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Keybase profile" href="https://keybase.io/{{ .Site.Params.KeybaseUser }}"><img src="{{ .Site.BaseURL }}icons/keybase.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.MicroBlogUser }} + {{ if isset .Site.Params "microbloguser" }} <div class="icon-24x24"> - <a class="glyph" alt="Micro.Blog profile" href="https://micro.blog/{{ . }}"><img src="/icons/microblog.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Micro.Blog profile" href="https://micro.blog/{{ .Site.Params.MicroBlogUser }}"><img src="{{ .Site.BaseURL }}icons/microblog.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.RedditUser }} + {{ if isset .Site.Params "reddituser" }} <div class="icon-24x24"> - <a class="glyph" alt="Reddit profile" href="https://www.reddit.com/user/{{ . }}"> - <img src="/icons/reddit-alien.svg" height="24px" width="24px" /> - </a> + <a class="glyph" alt="Reddit profile" href="https://www.reddit.com/user/{{ .Site.Params.RedditUser }}"><img src="{{ .Site.BaseURL }}icons/reddit-alien.svg" height="24px" width="24px" /></a> </div> {{ end }} - {{ with .Site.Params.StackOverflowUser }} + {{ if isset .Site.Params "stackoverflowuser" }} <div class="icon-24x24"> - <a class="glyph" alt="Stack Overflow profile" href="https://stackoverflow.com/users/{{ . }}"><img src="/icons/stack-overflow.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Stack Overflow profile" href="https://stackoverflow.com/users/{{ .Site.Params.StackOverflowUser }}"><img src="{{ .Site.BaseURL }}icons/stack-overflow.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.TumblrUser }} + {{ if isset .Site.Params "tumblruser" }} <div class="icon-24x24"> - <a class="glyph" alt="Tumblr profile" href="https://{{ . }}.tumblr.com/"><img src="/icons/tumblr.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Tumblr profile" href="https://{{ .Site.Params.TumblrUser }}.tumblr.com/"><img src="{{ .Site.BaseURL }}icons/tumblr.svg" height="24px" width="24px"></a> </div> {{ end }} - {{ with .Site.Params.TwitterUser }} + {{ if isset .Site.Params "twitteruser" }} <div class="icon-24x24"> - <a class="glyph" alt="Twitter profile" href="https://twitter.com/{{ . }}"><img src="/icons/twitter.svg" height="24px" width="24px"></a> + <a class="glyph" alt="Twitter profile" href="https://twitter.com/{{ .Site.Params.TwitterUser }}"><img src="{{ .Site.BaseURL }}icons/twitter.svg" height="24px" width="24px"></a> </div> {{ end }} </div> |