Skip to content

Commit

Permalink
Support Sessionize as link
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Nov 29, 2023
1 parent 07d4662 commit 018cda5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions java-champions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# linkedin:
# github:
# website:
# sessionize:
#
####################################################################################

Expand Down Expand Up @@ -88,6 +89,8 @@ members:
linkedin: https://www.linkedin.com/in/aalmiray
github: https://github.com/aalmiray
website: https://andresalmiray.com
sessionize: https://sessionize.com/andres-almiray
youtube: https://www.youtube.com/@aalmiray
avatar: img/avatars/aalmiray.png
status:
- alumni
Expand Down Expand Up @@ -2446,6 +2449,7 @@ members:
twitter: https://twitter.com/ixchelruiz
mastodon: https://mastodon.social/@ixchelruiz
bluesky: https://bsky.app/profile/ixchelruiz.bsky.social
sessionize: https://sessionize.com/ixchelruiz
avatar: img/avatars/ixchelruiz.png
- name: Antoine Sabot-Durand
year: 2017
Expand Down
12 changes: 11 additions & 1 deletion resources/site.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class site {
"github", "pass:[<span class=\"icon\"><i class=\"fab fa-github\"></i></span>]",
"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>]"
"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>]"
);

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

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

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

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

Expand Down

0 comments on commit 018cda5

Please sign in to comment.