Skip to content

Commit eb5457c

Browse files
committed
feat(contact): Adds GitLab as a configurable contact for the sidebar.
1 parent 7708adb commit eb5457c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ url: ""
2828
github:
2929
username: github_username # change to your GitHub username
3030

31+
gitlab:
32+
username: gitlab_username # change to your GitLab username
33+
3134
twitter:
3235
username: twitter_username # change to your Twitter username
3336

_data/contact.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
- type: github
44
icon: "fab fa-github"
55

6+
- type: gitlab
7+
icon: "fab fa-github"
8+
69
- type: twitter
710
icon: "fa-brands fa-x-twitter"
811

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
{% for entry in site.data.contact %}
5555
{% case entry.type %}
56-
{% when 'github', 'twitter' %}
56+
{% when 'github', 'gitlab', 'twitter' %}
5757
{%- capture url -%}
5858
https://{{ entry.type }}.com/{{ site[entry.type].username }}
5959
{%- endcapture -%}

0 commit comments

Comments
 (0)