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:
authorJens Sauer <jsauer65@gmail.com>2018-10-18 18:06:01 +0300
committerJens Sauer <jsauer65@gmail.com>2018-10-18 18:06:01 +0300
commit092fc83aa724c16fb2934f1fbffd2da5ed5da297 (patch)
treee7d46518a027f1f4aff8df582f52d264777d3041 /layouts
parentde1fe66e730e6c910080eff7f4b55e93d18ac596 (diff)
partials/social: Change conditional for reddit button
To keep consistency with the generation of the other social buttons generation, change the conditional to a '{{ with }}' because a call to '{{ .Site.BaseURL }}' seems not necessary.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/social.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 161af1b..70ee33b 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -55,10 +55,10 @@
<a class="glyph" alt="Twitter profile" href="https://twitter.com/{{ . }}"><img src="/icons/twitter.svg" height="24px" width="24px"></a>
</div>
{{ end }}
- {{ if isset .Site.Params "reddituser" }}
+ {{ with .Site.Params.RedditUser }}
<div class="icon-24x24">
- <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 class="glyph" alt="Reddit profile" href="https://www.reddit.com/user/{{ . }}">
+ <img src="/icons/reddit-alien.svg" height="24px" width="24px" />
</a>
</div>
{{ end }}