✨feature: Add excerpt to post index page
This commit is contained in:
@@ -41,7 +41,7 @@ get_header();
|
||||
<?php endif; ?>
|
||||
</figure>
|
||||
|
||||
<div class="post-list__details px-4 py-8 flex flex-col flex-grow">
|
||||
<div class="post-list__details px-4 py-8 flex flex-col grow">
|
||||
<div class="post-list__cats">
|
||||
Posted in:
|
||||
<?php
|
||||
@@ -57,6 +57,10 @@ get_header();
|
||||
<h2 class="post-list__title font-normal text-25px text-balance line-clamp-4 truncate mt-0 mb-5 mx-0"><?php the_title(); ?></h2>
|
||||
</a>
|
||||
|
||||
<div class="post-list__excerpt mb-6">
|
||||
<?php customExcerpt( get_the_content(), 15 ); ?>
|
||||
</div>
|
||||
|
||||
<div class="post-list__byline mt-auto">
|
||||
<span class="post-list__author"><?php echo esc_html( ucfirst( get_the_author() ) ); ?> —</span>
|
||||
<span class="post-list__date"><?php echo get_the_date(); ?></span>
|
||||
|
||||
Reference in New Issue
Block a user