/**
* Filter the default image attachment size.
*
* @since Twenty Twenty-One 1.0
*
* @param string $image_size Image size. Default 'full'.
*/
$image_size =
apply_filters( 'twenty_twenty_one_attachment_size', 'full'
);
echo wp_get_attachment_image( get_the_ID(),
$image_size );
?>
<?php
if ( wp_get_attachment_caption() ) : ?>
<figcaption class="wp-caption-text"><?php
echo wp_kses_post( wp_get_attachment_caption() ); ?></figcaption>
<?php
endif; ?>
</figure><!-- .wp-block-image -->
<?php
the_content();
wp_link_pages( array
( 'before' => '<nav class="page-links" aria-label="' .
esc_attr__( 'Page', 'twentytwentyone'
) . '">',
'after' => '</nav>',