Commit 7fb0312a authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[social-links] Fix Facebook and GitLab links

parent d11e87d5
Pipeline #60427 passed with stage
in 18 seconds
......@@ -33,7 +33,7 @@ permalink: /:title/
# categories: [blog, project] # only show disqus for posts that have these categories
# if you don't have any of social below, comment the line
facebook: https://www.facebook.com/elusUTC/
facebook: elusUTC
# twitter: mytwitter
# instagram: myinstagram
# pinterest: mypinterest
......@@ -41,7 +41,8 @@ facebook: https://www.facebook.com/elusUTC/
# youtube: myyoutube
# spotify: myspotify
github: false
gitlab: https://gitlab.utc.fr/elus_etu/
gitlab-user: elus_etu
gitlab-instance: gitlab.utc.fr
# lastfm: mylastfm
# stackoverflow: 7044681/mystackoverflow
# quora: userquora
......
......@@ -53,8 +53,14 @@
</a>
{% endif %}
{% if site.gitlab %}
<a class="link" data-title="gitlab.com/{{ site.gitlab }}" href="https://gitlab.com/{{ site.gitlab }}" target="_blank">
{% if site.gitlab-instance %}
{% assign gitlab-instance = site.gitlab-instance %}
{% else %}
{% assign gitlab-instance = "gitlab.com" %}
{% endif %}
{% if site.gitlab-user %}
<a class="link" data-title="{{ gitlab-instance }}/{{ site.gitlab-user }}" href="https://{{ gitlab-instance }}/{{ site.gitlab-user }}" target="_blank">
{% fa_svg fab.fa-gitlab %}
</a>
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment