Skip to content

Commit 48f55a5

Browse files
committed
remove all hard-coded URLs to our discord
1 parent 94c0620 commit 48f55a5

File tree

6 files changed

+26
-10
lines changed

6 files changed

+26
-10
lines changed

content/english/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ banner:
77
button:
88
enable: true
99
label: "Join us on Discord"
10-
link: "https://discord.gg/w3gppwZMyb"
10+
social: discord
1111
---

content/english/about/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Complexity and Networks COmmunity and REsources (CORE) is an organization dedica
77
<div style="display: flex; justify-content: center; align-items: center; margin-top: 20px;">
88
<a
99
class="btn btn-primary"
10-
href="https://discord.gg/w3gppwZMyb"
10+
href="{{< get_social_link "discord" >}}"
1111
target="_blank" rel="noopener">
1212
Join us on Discord
1313
<i class="fa fa-arrow-right pl-2"></i>
1414
</a>
15-
</div>
15+
</div>

content/english/calendar/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ We collect dates for all kinds of event that happen within the community.
99
They also include deadlines for registration or submissions, so you can be sure not to miss them!
1010
You can subcribe to calendars which are divided by event category, as listed below.
1111

12-
Want to add events to the calendar, post your event on our <u>[discord server](https://discord.gg/w3gppwZMyb)</u> in the "Events" channel, and we will add it.
12+
Want to add events to the calendar, post your event on our <u>[Discord server]({{< get_social_link "discord" >}})</u> in the "Events" channel, and we will add it.

content/english/resources/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ title: "Resources"
3333

3434
{{< accordion "<div><i class='fa-solid fa-people-arrows pr-4'></i>to start new collaborations</div>" >}}
3535

36-
- [Our Discord server](https://discord.gg/yFmVMZ29) is the perfect platform to meet other researchers in the community. You are only one click away from starting new scientific collaborations.
36+
- [Our Discord server]({{< get_social_link "discord" >}}) is the perfect platform to meet other researchers in the community. You are only one click away from starting new scientific collaborations.
3737

3838
**Workshops**
3939
- [Winter Workshop on Complex Systems](https://wwcs2025.github.io) is a one-week workshop where young researchers worldwide come together to work on interdisciplinary projects around complex systems.
@@ -46,7 +46,7 @@ title: "Resources"
4646

4747
{{< accordion "<div><i class='fa-solid fa-award pr-4'></i>a position</div>" >}}
4848

49-
- [Our Discord server](https://discord.gg/yFmVMZ29) has a specific subchannel dedicated to new job opportunities. Join the Discord to always be updated, or contact us by email if you have a job opportunity you want to share.
49+
- [Our Discord server]({{< get_social_link "discord" >}}) has a specific subchannel dedicated to new job opportunities. Join the Discord to always be updated, or contact us by email if you have a job opportunity you want to share.
5050
- [CSS job page](https://cssociety.org/job-openings) regularly publishes job opportunities related to complex systems.
5151
- [NetSci job page](https://www.netscisociety.net/jobs) regularly publishes job opportunities related to network science.
5252

@@ -81,7 +81,7 @@ title: "Resources"
8181
{{< /accordion >}}
8282

8383
{{< accordion "<div><i class='fa-solid fa-globe pr-4'></i>to keep in touch with the community online</div>" >}}
84-
- [Our Discord server](https://discord.gg/yFmVMZ29) is the perfect platform to meet other researchers in the community. Here you can get all kinds of updates related to our community, and ask any kind of question to fellow researchers.
84+
- [Our Discord server]({{< get_social_link "discord" >}}) is the perfect platform to meet other researchers in the community. Here you can get all kinds of updates related to our community, and ask any kind of question to fellow researchers.
8585
- [NetSci Outreach page](https://www.netscisociety.net/outreach) contains an extensive set of resources useful for any scientist starting in network science (e.g. books, seminars, software, research centers...).
8686
- [NetSci Colloquium](https://www.netscisociety.net/events/colloquium) regular online seminars organized by the Network Science Society. Mostly focused on network science research.
8787
- [Santa Fe Institute Educational Programs](https://santafe.edu/engage/learn/overview) list of resources for researchers at all levels interested in following all the complex systems' programs organized by the Santa Fe Institute.
@@ -113,4 +113,4 @@ title: "Resources"
113113

114114
{{< /accordion >}}
115115

116-
Have a resource you'd like added to this page? Please contact us on our <u>[discord server](https://discord.gg/w3gppwZMyb)</u> and we'll add it.
116+
Have a resource you'd like added to this page? Please contact us on our <u>[discord server]({{< get_social_link "discord" >}})</u> and we'll add it.

themes/hugoplate/layouts/index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@ <h1 class="mb-4 text-h3 lg:text-h1">
1212
</p>
1313
{{ with .button }}
1414
{{ if .enable }}
15+
{{ $link := "" }}
16+
{{ if .link }}
17+
{{ $link = .link }}
18+
{{ else }}
19+
{{ range site.Data.social.main }}
20+
{{ if eq .name $.Params.banner.button.social }}
21+
{{ $link = .link }}
22+
{{ end }}
23+
{{ end }}
24+
{{ end }}
1525
<a
1626
class="btn btn-primary"
17-
href="{{ .link | absURL }}"
18-
{{ if strings.HasPrefix .link `http` }}
27+
href="{{ $link | absURL }}"
28+
{{ if strings.HasPrefix $link `http` }}
1929
target="_blank" rel="noopener"
2030
{{ end }}>
2131
{{ .label }}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{ $name := (.Get 0)}}
2+
{{ range site.Data.social.main }}
3+
{{ if eq .name $name }}
4+
{{ .link }}
5+
{{ end }}
6+
{{ end }}

0 commit comments

Comments
 (0)