File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ social-network-links:
73
73
# mastodon: instance.url/@username
74
74
# ORCID: your ORCID ID
75
75
# google-scholar: your google scholar
76
- # discord: invite/ invite_code or users/userid
76
+ # discord: " invite_code" or " users/userid" or "invite/invite_code"
77
77
# kaggle: yourname
78
78
# hackerrank: yourname
79
79
Original file line number Diff line number Diff line change 301
301
{%- endif -%}
302
302
303
303
{%- if site.social-network-links.discord -%}
304
+ {% assign discord_start = site.social-network-links.discord | split: "/" | first -%}
305
+ {% unless discord_start == 'users' or discord_start == 'invite' -%}
306
+ {% assign discord_url_prefix = 'invite/' -%}
307
+ {% endunless -%}
304
308
< li class ="list-inline-item ">
305
- < a href ="https://discord.com/{{ site.social-network-links.discord }} " title ="Discord ">
309
+ < a href ="https://discord.com/{{discord_url_prefix}}{{ site.social-network-links.discord}} " title ="Discord ">
306
310
< span class ="fa-stack fa-lg " aria-hidden ="true ">
307
311
< i class ="fas fa-circle fa-stack-2x "> </ i >
308
312
< i class ="fab fa-discord fa-stack-1x fa-inverse "> </ i >
You can’t perform that action at this time.
0 commit comments