If you’re using a custom archive template I think you should add the conditional is_post_type_archive()
if ( 'post' === get_post_type() || is_post_type_archive( array( 'articles' ) ) );
If you’re using a custom archive template I think you should add the conditional is_post_type_archive()
if ( 'post' === get_post_type() || is_post_type_archive( array( 'articles' ) ) );