mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +02:00
Add Twitch and Gitlab (#134)
* Add Twitch to social options * Add 'view post on gitlab' to footer
This commit is contained in:

committed by
Michael Noronha

parent
3cc67bfd7f
commit
3511cf88a7
@@ -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
BIN
static/img/twitch.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Reference in New Issue
Block a user