From 0ce722f24c496e5cf505a2e0d2b5961c19c86529 Mon Sep 17 00:00:00 2001 From: keyan Date: Thu, 8 Jul 2021 15:13:52 -0500 Subject: [PATCH] open story links in a new tab --- components/item.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/item.js b/components/item.js index 349b7063..af9b4acd 100644 --- a/components/item.js +++ b/components/item.js @@ -20,7 +20,10 @@ export default function Item ({ item, rank, children }) { {item.title} {item.url && - = 10 ? null : 'nofollow'}> + = 10 ? null : 'nofollow'} + > {item.url.replace(/(^https?:|^)\/\//, '')} }