Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <angelo@fogcreek.com>2018-10-20 22:21:10 +0300
committerAngelo Stavrow <angelo@fogcreek.com>2018-10-20 22:21:10 +0300
commite314c1c5eaa6ac268d834e7523c151d282404b51 (patch)
treef8811991eba0be7c9e3a9882cbbd04f2a1b91a6d /layouts
parent5bf5047cdd06b38311c68cb89a7ad4b653d6e84d (diff)
Add baseURL to social icons (#27)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/social.html50
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>