{
const { classList } = event.target;
if (clickableClassList.includes(...classList)) {
if (event.which > 1 || event.metaKey || event.ctrlKey) {
// Indicates should open in _blank
window.open(article.path, '_blank');
} else {
const fullUrl = window.location.origin + article.path; // InstantClick deals with full urls
InstantClick.preload(fullUrl);
InstantClick.display(fullUrl);
}
}
}}
>
{article.cloudinary_video_url &&
}
{showCover &&
}
{pinned && (
{/* images/pin.svg */}
Pinned
post
)}
{isArticle && (
// eslint-disable-next-line no-underscore-dangle
)}
{article.class_name !== 'User' && (
)}
{article.top_comments && article.top_comments.length > 0 && (
)}