diff --git a/src/pages/working-groups/index.astro b/src/pages/working-groups/index.astro index 2c6b19b..4ae04b9 100644 --- a/src/pages/working-groups/index.astro +++ b/src/pages/working-groups/index.astro @@ -33,6 +33,7 @@ const data = [ description: 'Targeting application layer support for Windows. From tooling to enablement and optimization of libraries on the Windows platform', googlegroupname: 'windows-on-arm', + githubUrl: 'https://github.com/CoreCollective-dev/windows-on-arm-wg', }, { title: 'Android', @@ -94,8 +95,10 @@ const data = [ > { data.map((item, index) => { - const targetUrl = item.archiveUrl || (item.googlegroupname ? `https://groups.google.com/u/0/a/corecollective.dev/g/${item.googlegroupname}` : null); - const linkText = item.archiveUrl ? 'Learn More' : 'List Archive'; + const archiveUrl = item.archiveUrl || (item.googlegroupname ? `https://groups.google.com/u/0/a/corecollective.dev/g/${item.googlegroupname}` : null); + const archiveText = item.archiveUrl ? 'Learn More' : 'List Archive'; + // The title links to the GitHub URL when provided, otherwise to the archive/group. + const titleUrl = item.githubUrl || archiveUrl; return (
  • @@ -111,8 +114,8 @@ const data = [

    - {targetUrl ? ( - + {titleUrl ? ( + {item.title} ) : ( @@ -126,11 +129,18 @@ const data = [ {item.description}

    - {targetUrl && ( -

    - - {linkText} - + {(item.githubUrl || archiveUrl) && ( +

    + {item.githubUrl && ( + + Learn More + + )} + {archiveUrl && ( + + {archiveText} + + )}

    )}