Skip to content

Commit

Permalink
Support SpeakerDeck as link
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Nov 29, 2023
1 parent 38be916 commit 88efcd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions java-champions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,7 @@ members:
twitter: https://twitter.com/mraible
bluesky: https://bsky.app/profile/mraible.bsky.social
sessionize: https://sessionize.com/matt-raible
speakerdeck: https://speakerdeck.com/mraible
youtube: https://youtube.com/mraible
avatar: img/avatars/mraible.png
- name: Srikanth Raju
Expand Down
12 changes: 11 additions & 1 deletion resources/site.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public class site {
"bluesky", "pass:[<span class=\"icon\"><i class=\"fa fa-cloud\"></i></span>]",
"website", "pass:[<span class=\"icon\"><i class=\"fa fa-globe\"></i></span>]",
"youtube", "pass:[<span class=\"icon\"><i class=\"fab fa-youtube-square\"></i></span>]",
"sessionize", "pass:[<span class=\"icon\"><i class=\"fa fa-bullhorn\"></i></span>]"
"sessionize", "pass:[<span class=\"icon\"><i class=\"fa fa-bullhorn\"></i></span>]",
"speakerdeck", "pass:[<span class=\"icon\"><i class=\"fab fa-speaker-deck\"></i></span>]"
);

private static final Map<String, String> COUNTRY = Map.of(
Expand Down Expand Up @@ -233,6 +234,7 @@ static class Social {
public String website;
public String youtube;
public String sessionize;
public String speakerdeck;

String formatted() {
var b = new StringBuilder("|");
Expand Down Expand Up @@ -301,6 +303,14 @@ String formatted() {
.append("] ");
}

if (speakerdeck != null && !speakerdeck.isBlank()) {
b.append("link:")
.append(speakerdeck)
.append("[")
.append(SOCIAL.get("speakerdeck"))
.append("] ");
}

return b.append("\n").toString();
}

Expand Down

0 comments on commit 88efcd5

Please sign in to comment.