From 2ac26d6e29683f00043c5b1a17d71ff7849be1ac Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Tue, 12 Aug 2025 15:36:33 -0400 Subject: [PATCH] Fixing Github links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I realized the Github links weren’t working on team profile cards. The fun bit is while `pixi run live` rebuilds the site, it doesn’t rebuild the injected team profiles, so a `clean` `live` loop needed to happen to debug. --- _ext/ohw_team.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/_ext/ohw_team.py b/_ext/ohw_team.py index 43dbda4d..5e685d24 100644 --- a/_ext/ohw_team.py +++ b/_ext/ohw_team.py @@ -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 @@ -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(