Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions _ext/ohw_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,14 @@ def run(self):
)
)
body = nodes.container(is_div=True, classes=["card-body"])
name = nodes.paragraph(text=member["name"], classes=["h5"])
name = nodes.paragraph(text=member["name"] + " ", classes=["h5"])

# Add Github icon if github user account is provided
if "github_user" in member and member["github_user"] is not None:
target = directives.uri("https://github.com/" + member["github_user"])
link = nodes.reference(
"", refuri=target, text="", classes=["fab", "fa-github", "ml-1"]
)
link.append(nodes.inline(text=""))
target = "https://github.com/" + member["github_user"]
icon = nodes.inline(text="", classes=["fab", "fa-github", "ml-1"])
link = nodes.reference("", refuri=target)
link.append(icon)
name.append(link)

# If emails are avaliable and email_icon is enabled, then add a email icon
Expand All @@ -103,11 +102,10 @@ def run(self):
and "email" in member
and member["email"] is not None
):
target = directives.uri("mailto:" + member["email"])
link = nodes.reference(
"", refuri=target, text="", classes=["fas", "fa-envelope", "ml-1"]
)
link.append(nodes.inline(text=""))
target = "mailto:" + member["email"]
icon = nodes.inline(text="", classes=["fas", "fa-envelope", "ml-1"])
link = nodes.reference("", refuri=target)
link.append(icon)
name.append(link)

body.extend(
Expand Down