Add Twitch and Gitlab (#134)

* Add Twitch to social options

* Add 'view post on gitlab' to footer
This commit is contained in:
Spencer Krum
2019-09-15 10:34:35 -05:00
committed by Michael Noronha
parent 3cc67bfd7f
commit 3511cf88a7
2 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,17 @@
</div>
{{ end }}
{{ if .Site.Params.gitlabRepo }}
<div class="copyright">
{{ $length := len ( split .Site.Params.gitlabRepo "/" ) }}
{{ if eq $length 2 }}
<a href="https://gitlab.com/{{ .Site.Params.gitlabRepo }}/tree/master/content/{{ replace .File.Path "\\" "/" }}" target="_blank">View this post on gitlab</a>
{{ else }}
<a href="https://gitlab.com/{{ .Site.Params.gitlabRepo }}/content/{{ replace .File.Path "\\" "/" }}" target="_blank">View this post on gitlab</a>
{{ end }}
</div>
{{ end }}
<div class="copyright">
{{ if .Site.Params.copyright }}
@@ -49,6 +60,12 @@
</a>
{{ end }}
{{ if .Site.Params.twitch }}
<a href="https://www.twitch.tv/{{ .Site.Params.twitch }}" rel=me target="_blank">
<img class="icon" src="{{ .Site.BaseURL }}img/twitch.png" alt="twitch" />
</a>
{{ end }}
{{ if .Site.Params.facebook }}
<a href="https://facebook.com/{{ .Site.Params.facebook }}" rel=me target="_blank">
<img class="icon" src="{{ .Site.BaseURL }}img/facebook.svg" alt="facebook" />

BIN
static/img/twitch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB