primeiro commit
Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
commit
e6a6f9c159
19 files changed
+3202
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part: Post Card
|
||||
*
|
||||
* @package MartinsEVieira
|
||||
*/
|
||||
?>
|
||||
<article class="post-card">
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<a href="<?php the_permalink(); ?>" aria-label="<?php echo esc_attr(get_the_title()); ?>">
|
||||
<?php the_post_thumbnail('post-thumb', array('loading' => 'lazy')); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<div class="post-content">
|
||||
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
|
||||
<p><?php echo wp_trim_words(get_the_excerpt(), 20); ?></p>
|
||||
<a href="<?php the_permalink(); ?>" class="read-more">Leia mais →</a>
|
||||
</div>
|
||||
</article>
|
||||
Reference in new issue
Block a user