open story links in a new tab
This commit is contained in:
parent
46a4402bb6
commit
0ce722f24c
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue