layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

News: Add an optional "source_url" property to news article entries

Open leecalcote opened this issue 1 month ago • 9 comments

Summary

Add an optional "original_url" (or similarly named) property to news article entries and update the news template so that, when present, the article page displays a link labeled "Originally published at" that points to the original article.

Background

We reprint external news articles pertaining to Layer5 and its projects and products on layer5.io/news. At the moment there is no standardized field to point back to the original source. Adding an optional property and rendering it in the UI will give proper attribution and allow readers to visit the original article.

Requirements

  • [ ] Add an optional field to the news article data model (e.g., source_url).
  • [ ] Update the news collection/template to read the new field.
  • [ ] When the field is present, display a visible link on the article page with the text: "Originally published at [Source Name or URL]".
  • [ ] The link should open in a new tab.
  • [ ] The feature must be optional and not affect articles that do not provide a source URL.
  • [ ] Include a short unit or visual test to verify the link is rendered only when the field exists.

Suggested tasks

  • [ ] Update news schema/frontmatter to include optional source_url.
  • [ ] Modify the news article template to conditionally render the attribution link (graphql).
  • [ ] Add or update one news item as an example to demonstrate the behavior.
  • [ ] Update the news_template.md to include an example and comment explaining the property.
  • [ ] Add a short note in CONTRIBUTING.md or the newsroom author guide about the new field and how to use it.

Acceptance criteria

  • [ ] news.md issue template has been updated.
  • [ ] Existing news pages with no source field remain unchanged.
  • [ ] A news page with original_url shows a single, clearly labeled "Originally published at" link that opens in a new tab.
  • [ ] The code change is documented in CONTRIBUTING or the content guide (where news authoring is described).

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

leecalcote avatar Nov 18 '25 14:11 leecalcote

I'd like to work on this one

kirti763 avatar Nov 18 '25 15:11 kirti763

Hi @leecalcote , I would like to work on this issue. Please assign this issue to me.

rishiraj38 avatar Nov 19 '25 16:11 rishiraj38

Thank you!

leecalcote avatar Nov 19 '25 18:11 leecalcote

@kirti763 , are you working on it?

rishiraj38 avatar Nov 23 '25 06:11 rishiraj38

@rishiraj38 thanks for checking in. yes i am working on it

kirti763 avatar Nov 23 '25 14:11 kirti763

@kirti763 are you still working on it ?

rishiraj38 avatar Dec 04 '25 04:12 rishiraj38

@kirti763, let me know if you need any help! Happy to collaborate wherever needed.

a-y-a-n-das avatar Dec 06 '25 04:12 a-y-a-n-das

@leecalcote , if no one’s working on this issue please pass it on to me.

rishiraj38 avatar Dec 06 '25 06:12 rishiraj38

Thanks, @rishiraj38. There’s been no word and no progress from @kirti763.

leecalcote avatar Dec 06 '25 07:12 leecalcote