Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 18, 2026

The "Latest News" section on the home page was displaying activities instead of actual news items. This updates it to show the 3 most recent news entries and enables anchor navigation to the full news page.

Changes

src/pages/index.astro

  • Fetch from news collection instead of activities
  • Render timeline-style layout with date, title, and summary
  • Update "View all" link from /activities to /news#latestNews
const news = (await getCollection('news'))
  .sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf())
  .slice(0, 3);

src/pages/news.astro

  • Add id="latestNews" to news container for anchor navigation

Preview

Latest News Section

Now displays:

  • 2024-04-25: AI-MARRVEL for rare genetic disorder diagnosis
  • 2024-03-13: Texas Children's Hospital Data Science Center inauguration
  • 2020-05-28: PRIME scRNA-seq imputation paper

"View all" navigates to /news#latestNews and scrolls to the news list.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/Liuzlab.github.io/Liuzlab.github.io/node_modules/.bin/astro build (dns block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/Liuzlab.github.io/Liuzlab.github.io/node_modules/.bin/astro preview (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

The latest news really didn't show what we need to see.

  • Can you show the last three news items from news?
  • If you can locate to section.latestNews when we click the new all button, that would be great.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 18, 2026 18:28
Co-authored-by: hyunhwan-bcm <166857764+hyunhwan-bcm@users.noreply.github.com>
Co-authored-by: hyunhwan-bcm <166857764+hyunhwan-bcm@users.noreply.github.com>
Copilot AI changed the title [WIP] Add functionality to display last three news items Display news items instead of activities in Latest News section Jan 18, 2026
Copilot AI requested a review from hyunhwan-bcm January 18, 2026 18:37
@hyunhwan-bcm hyunhwan-bcm marked this pull request as ready for review January 18, 2026 18:40
@hyunhwan-bcm hyunhwan-bcm merged commit a209294 into main Jan 18, 2026
1 check passed
@github-actions
Copy link

Build Successful!

Your PR has been successfully built and is ready for preview.

📦 Artifact: pr-preview-16
🔗 Workflow Run: View Details

The build artifact is available for 7 days and can be downloaded from the workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants