Skip to content

Commit

Permalink
Support Xing as link
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Dec 1, 2023
1 parent e660de4 commit a123928
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions java-champions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# github:
# website:
# sessionize:
# xing:
#
####################################################################################

Expand Down
10 changes: 10 additions & 0 deletions resources/site.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class site {
"twitter", "pass:[<span class=\"icon\"><i class=\"fab fa-twitter\"></i></span>]",
"mastodon", "pass:[<span class=\"icon\"><i class=\"fab fa-mastodon\"></i></span>]",
"linkedin", "pass:[<span class=\"icon\"><i class=\"fab fa-linkedin\"></i></span>]",
"xing", "pass:[<span class=\"icon\"><i class=\"fab fa-xing\"></i></span>]",
"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>]",
Expand Down Expand Up @@ -235,6 +236,7 @@ static class Social {
public String youtube;
public String sessionize;
public String speakerdeck;
public String xing;

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

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

if (github != null && !github.isBlank()) {
b.append("link:")
.append(github)
Expand Down

0 comments on commit a123928

Please sign in to comment.