Skip to content

Commit c1dd73c

Browse files
authored
Merge pull request #15 from Slavetomints/add/social-media-profiles
[add] Twitter and Bluesky profiles
2 parents b51a0a3 + 3badb55 commit c1dd73c

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ url: "https://detraced.org"
2828
github:
2929
username: DeTraced-Security # change to your GitHub username
3030

31-
# twitter:
32-
# username: # change to your Twitter username
31+
twitter:
32+
username: DetracedSec # change to your Twitter username
3333

3434
social:
3535
# Change to your full name.

_data/contact.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
icon: "fa-brands fa-discord"
88
url: https://discord.gg/ahecAvxwhh
99

10-
# - type: twitter
11-
# icon: "fa-brands fa-x-twitter"
10+
- type: twitter
11+
icon: "fa-brands fa-x-twitter"
1212

1313
- type: email
1414
icon: "fas fa-envelope"
@@ -31,9 +31,9 @@
3131
# icon: 'fab fa-stack-overflow'
3232
# url: '' # Fill with your stackoverflow homepage
3333
#
34-
# - type: bluesky
35-
# icon: 'fa-brands fa-bluesky'
36-
# url: '' # Fill with your Bluesky profile link
34+
- type: bluesky
35+
icon: 'fa-brands fa-bluesky'
36+
url: 'https://bsky.app/profile/detraced-org.bsky.social' # Fill with your Bluesky profile link
3737
#
3838
# - type: reddit
3939
# icon: 'fa-brands fa-reddit'

_includes/sidebar.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@
5454
{% endunless %}
5555

5656
<!-- the Socials + Email + RSS buttons -->
57-
{% for entry in site.data.contact %}
57+
{% assign regular_entries = site.data.contact | where_exp: "item", "item.type != 'email' and item.type != 'rss'" %}
58+
{% assign email_entries = site.data.contact | where: "type", "email" %}
59+
{% assign rss_entries = site.data.contact | where: "type", "rss" %}
60+
{% assign ordered_entries = regular_entries | concat: email_entries | concat: rss_entries %}
61+
62+
{% for entry in ordered_entries %}
5863
{%- assign url = null -%}
5964

6065
{% case entry.type %}

0 commit comments

Comments
 (0)