Skip to content

Conversation

@rishiraj38
Copy link
Contributor

@rishiraj38 rishiraj38 commented Dec 6, 2025

Description
This PR adds an optional source_url field to the news article data model. This allows reprinted news articles to properly attribute and link back to the original source.

Changes included:

  • Updated src/templates/news-single.js to retrieve source_url from frontmatter.
  • Updated src/sections/Company/News-single/index.js to conditionally display an "Originally published at [URL]" link when the field is present.
  • Updated the news issue template (.github/ISSUE_TEMPLATE/news.md) and the content template (index.mdx) to include this new field.
  • Updated CONTRIBUTING.md with usage instructions.
  • Added a unit test source_url.test.js to verify the rendering logic.

This fixes #7135.

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).

Notes for Reviewers
You can verify this by checking any news article that has the source_url field added to its frontmatter (none are added in this PR to keep it valid for existing content, but the template is updated for future use).

Signed commits

  • Yes, I signed my commits.

@github-actions github-actions bot added area/news A noteworthy article, event, happening area/ci labels Dec 6, 2025
@l5io
Copy link
Contributor

l5io commented Dec 6, 2025

🚀 Preview for commit a49201e at: https://6934720953d25512b3111772--layer5.netlify.app

@rishiraj38
Copy link
Contributor Author

@leecalcote , please review and give some feedback.

Copy link
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rishiraj38, thank you. Will you please:

  1. Confirm that the optional aspect of this property is supported?
  2. For each published item in our news collection, add its source_url, if one is included (most should have one).

@leecalcote
Copy link
Member

This is looking real good otherwise, @rishiraj38 👍

@rishiraj38
Copy link
Contributor Author

@leecalcote Yes, source_url is fully optional. If it's not present , the UI simply doesn't render the "Originally published at" link, and the build remains unaffected.

@l5io
Copy link
Contributor

l5io commented Dec 7, 2025

🚀 Preview for commit c9fc75e at: https://6935782cc211bb3da70ebb7b--layer5.netlify.app

@Fireentity
Copy link
Contributor

@rishiraj38 Thank you for your contribution! Let's discuss this during the website call tomorrow at 6:30 PM IST | 8 AM CT Add it as an agenda item to the meeting minutes, if you would 🙂

Copy link
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rishiraj38, send word when you have updated each item in the news collection with their respective source_url.

@rishiraj38 rishiraj38 force-pushed the feat/news-source-url branch from 2d4b0b7 to a3362c7 Compare December 8, 2025 07:07
@l5io
Copy link
Contributor

l5io commented Dec 8, 2025

🚀 Preview for commit b73e5c2 at: https://69367db053d25577e31116d2--layer5.netlify.app

@rishiraj38
Copy link
Contributor Author

@leecalcote ,please provide some feedback.

@kishore08-07
Copy link
Contributor

@rishiraj38
Thank you for your contribution!
Let's discuss this during the website call today at 6:30 PM IST | 8 AM CT
Add it as an agenda item to the meeting minutes, if you would 🙂

@l5io
Copy link
Contributor

l5io commented Dec 8, 2025

🚀 Preview for commit cd38790 at: https://69370aec4fa46d596b5f4da7--layer5.netlify.app

@leecalcote
Copy link
Member

@leecalcote ,please provide some feedback.

Best that you describe what changes you've made, so that I'm aware of what, specifically, you're looking for feedback on, @rishiraj38

thumbnail: "./what-the-numbers-say-about-how-service-meshes-are-used-today.webp"
darkthumbnail: "./what-the-numbers-say-about-how-service-meshes-are-used-today.webp"
eurl: https://thenewstack.io/what-the-numbers-say-about-how-service-meshes-are-used-today/
source_url: https://thenewstack.io/what-the-numbers-say-about-how-service-meshes-are-used-today/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the idea.

thumbnail: ./service-mesh-implementations.webp
darkthumbnail: ./service-mesh-implementations.webp
eurl: https://thenewstack.io/kubeconcloudnativecon-service-mesh-battle-stories-and-fixes/
source_url: https://thenewstack.io/kubeconcloudnativecon-service-mesh-battle-stories-and-fixes/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. correct.

@github-actions github-actions bot added project/meshery area/blog New posts or new blog functionality area/events labels Dec 9, 2025
@rishiraj38 rishiraj38 force-pushed the feat/news-source-url branch 3 times, most recently from 4b896a9 to f68b8c0 Compare December 9, 2025 05:05
@rishiraj38
Copy link
Contributor Author

@Rajesh-Nagarajan-11 I don’t know what’s happening. The DCO is failing yet I’m making signed commits.

@rishiraj38 rishiraj38 force-pushed the feat/news-source-url branch 2 times, most recently from 456afbf to d614286 Compare December 9, 2025 05:20
@l5io
Copy link
Contributor

l5io commented Dec 9, 2025

🚀 Preview for commit d614286 at: https://6937b4db9fe43cdf8c1e89c6--layer5.netlify.app

@rishiraj38
Copy link
Contributor Author

rishiraj38 commented Dec 9, 2025

@leecalcote , I’ve added the source URL to the news article that contained an eurl. Now, what do I do with the news articles that don’t have eurl?

l5io and others added 3 commits December 9, 2025 14:10
Signed-off-by: l5io <ci@layer5.io>
Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
…and documentation, along with corresponding tests

Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
@rishiraj38 rishiraj38 force-pushed the feat/news-source-url branch from b44f13e to 585c3d9 Compare December 9, 2025 08:41
@l5io
Copy link
Contributor

l5io commented Dec 9, 2025

🚀 Preview for commit 585c3d9 at: https://6937e3fdced81c3cc5450e85--layer5.netlify.app

@rishiraj38
Copy link
Contributor Author

@leecalcote please review, I’ve added the source URL to the news article that contained an eurl. Now, what do I do with the news articles that don’t have eurl?

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

Labels

area/blog New posts or new blog functionality area/ci area/events area/news A noteworthy article, event, happening project/meshery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants