Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make team member links distinguishable by an Icon #1403

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions src/content/teams/07_marketing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Maintains this website, responsible for social media outreach, coll
members:
- name: Rok Garbas
discourse: garbas
github: garbas
title: Leader
- name: Thomas Bereknyei
discourse: tomberek
Expand All @@ -16,9 +17,11 @@ members:
title:
- name: Dan Baker
discourse: djacu
github: djacu
title:
- name: Thilo Billerbeck
discourse: avocadoom
github: thilobillerbeck
title:
contact:
- name: Discourse
Expand Down
31 changes: 24 additions & 7 deletions src/pages/community/teams/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Layout from "../../../layouts/Layout.astro";
import PageHeader from "../../../components/layout/PageHeader.astro";
import Container from "../../../components/layout/Container.astro";
import Tag from "../../../components/ui/Tag.astro";
import { Icon } from "astro-icon/components";

export async function getStaticPaths() {
const teamEntries = await getCollection("teams");
Expand All @@ -30,20 +31,36 @@ const { Content } = await entry.render();
entry.data.members.map((member) => (
<li class="mb-1 last:mb-0">
{member.name}
{member.discourse && (
{member.title && (
<>
(<a href={"https://discourse.nixos.org/u/" + member.discourse}>@{member.discourse}</a>)
&mdash;
{member.title}
</>
)}
{member.github && (
{member.discourse && (
<br />
<>
(<a href={"https://github.com/" + member.github}>@{member.github}</a>)
<a href={"https://discourse.nixos.org/u/" + member.discourse}>
<Icon
name="simple-icons:discourse"
alt="logo of discourse"
class="inline-block"
/>
@{member.discourse}
</a>
</>
)}
{member.title && (
{member.github && (
<br />
<>
&mdash;
{member.title}
<a href={"https://github.com/" + member.github}>
<Icon
name="simple-icons:github"
alt="logo of github"
class="inline-block"
/>
@{member.github}
</a>
</>
)}
</li>
Expand Down