Initial theme commit
This commit is contained in:
8
template-parts/content.php
Executable file
8
template-parts/content.php
Executable file
@@ -0,0 +1,8 @@
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-card' ); ?>>
|
||||
<?php if ( has_post_thumbnail() ) : ?><a class="card-thumb" href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'large' ); ?></a><?php endif; ?>
|
||||
<div class="card-body">
|
||||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
||||
<div class="entry-meta"><span><?php echo esc_html( get_the_date() ); ?></span><span>·</span><span><?php the_author(); ?></span></div>
|
||||
<div class="entry-excerpt"><?php the_excerpt(); ?></div>
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user