open story links in a new tab

This commit is contained in:
keyan 2021-07-08 15:13:52 -05:00
parent 46a4402bb6
commit 0ce722f24c
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ export default function Item ({ item, rank, children }) {
<a className={`${styles.title} text-reset flex-md-shrink-0 mr-2`}>{item.title}</a>
</Link>
{item.url &&
<a className={styles.link} href={item.url} rel={item.sats + item.boost >= 10 ? null : 'nofollow'}>
<a
className={styles.link} target='_blank' href={item.url} // eslint-disable-line
rel={item.sats + item.boost >= 10 ? null : 'nofollow'}
>
{item.url.replace(/(^https?:|^)\/\//, '')}
</a>}
</div>