allow to specify a custom gitlab domain

This commit is contained in:
Martin Pépin 2019-02-26 00:41:22 +01:00
parent 6d6508433d
commit 308e03eac1

View file

@ -11,8 +11,12 @@
{{ with .Site.Params.social.bitbucket }}
<a href="https://bitbucket.org/{{.}}" rel="me"><i class="fab fa-bitbucket fa-lg" aria-hidden="true"></i></a>
{{ end }}
{{ $gitlab_domain := "gitlab.com" }}
{{ with .Site.Params.social.custom_gitlab_domain }}
{{ $gitlab_domain = . }}
{{ end }}
{{ with .Site.Params.social.gitlab }}
<a href="https://gitlab.com/{{.}}" rel="me"><i class="fab fa-gitlab fa-lg" aria-hidden="true"></i></a>
<a href="https://{{ $gitlab_domain }}/{{.}}" rel="me"><i class="fab fa-gitlab fa-lg" aria-hidden="true"></i></a>
{{ end }}
{{ with .Site.Params.social.instagram }}
<a href="https://instagram.com/{{.}}" rel="me"><i class="fab fa-instagram fa-lg" aria-hidden="true"></i></a>