// Edit post link.
edit_post_link( sprintf( /* translators: %s: Post title. Only visible to screen readers. */
esc_html__( 'Edit %s', 'twentytwentyone'
),
'<span class="screen-reader-text">' .
get_the_title() . '</span>'
),
'<span class="edit-link">',
'</span><br>'
);
if ( has_category() ||
has_tag() ) { echo '<div class="post-taxonomies">';
$categories_list =
get_the_category_list( wp_get_list_item_separator() );
if ( $categories_list ) { printf( /* translators: %s: List of categories. */
'<span class="cat-links">' .
esc_html__( 'Categorized as %s', 'twentytwentyone'
) . ' </span>',
$categories_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}