allow to specify a custom gitlab domain
This commit is contained in:
parent
6d6508433d
commit
308e03eac1
1 changed files with 5 additions and 1 deletions
|
@ -11,8 +11,12 @@
|
||||||
{{ with .Site.Params.social.bitbucket }}
|
{{ with .Site.Params.social.bitbucket }}
|
||||||
<a href="https://bitbucket.org/{{.}}" rel="me"><i class="fab fa-bitbucket fa-lg" aria-hidden="true"></i></a>
|
<a href="https://bitbucket.org/{{.}}" rel="me"><i class="fab fa-bitbucket fa-lg" aria-hidden="true"></i></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ $gitlab_domain := "gitlab.com" }}
|
||||||
|
{{ with .Site.Params.social.custom_gitlab_domain }}
|
||||||
|
{{ $gitlab_domain = . }}
|
||||||
|
{{ end }}
|
||||||
{{ with .Site.Params.social.gitlab }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ with .Site.Params.social.instagram }}
|
{{ with .Site.Params.social.instagram }}
|
||||||
<a href="https://instagram.com/{{.}}" rel="me"><i class="fab fa-instagram fa-lg" aria-hidden="true"></i></a>
|
<a href="https://instagram.com/{{.}}" rel="me"><i class="fab fa-instagram fa-lg" aria-hidden="true"></i></a>
|
||||||
|
|
Loading…
Reference in a new issue