This is an automated email from the ASF dual-hosted git repository.
xushiyan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 9039c5743e97 (chore) blog links redirect should open new tab (#13857)
9039c5743e97 is described below
commit 9039c5743e977f74863f83c9e7637785090b38a6
Author: Ranga Reddy <[email protected]>
AuthorDate: Tue Sep 16 21:12:23 2025 +0530
(chore) blog links redirect should open new tab (#13857)
---
website/src/theme/BlogPostItem/BlogPostBox.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/website/src/theme/BlogPostItem/BlogPostBox.js
b/website/src/theme/BlogPostItem/BlogPostBox.js
index 359a7e3cf52e..0bb08a111dad 100644
--- a/website/src/theme/BlogPostItem/BlogPostBox.js
+++ b/website/src/theme/BlogPostItem/BlogPostBox.js
@@ -87,7 +87,10 @@ export default function BlogPostBox({metadata = {}, assets,
frontMatter}) {
)}
<TitleHeading className={styles.blogPostTitle}
itemProp="headline">
{location.pathname.startsWith('/blog') ?
- <Link itemProp="url" to={permalink}>
+ <Link itemProp="url" to={permalink}
onClick={(e) => {
+ e.preventDefault();
+ window.open(permalink, '_blank',
'noopener,noreferrer');
+ }}>
<TitleHeading
className={styles.blogPostTitle} itemProp="headline">
{title}
</TitleHeading>
@@ -99,6 +102,7 @@ export default function BlogPostBox({metadata = {}, assets,
frontMatter}) {
</TitleHeading>
}
</TitleHeading>
+
<div className={clsx(styles.blogInfo, "margin-top--sm
margin-bottom--sm")}>
{AuthorsList()}
</div>