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,66 @@
|
||||
<?php
|
||||
// filepath: c:\Users\rodri\build\site-martinsevieira\index.php
|
||||
get_header();
|
||||
|
||||
<main class="blog-page">
|
||||
<div class="blog-page-header">
|
||||
<div class="header-content">
|
||||
<h1>Blog Jurídico</h1>
|
||||
<p>Artigos, notícias e atualizações sobre o mundo do Direito</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="blog-container">
|
||||
<div class="posts-grid-archive">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<article class="post-card-archive">
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="post-image">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_post_thumbnail('post-thumb'); ?>
|
||||
</a>
|
||||
<div class="post-category-badge">
|
||||
<?php the_category(', '); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="post-card-content">
|
||||
<div class="post-meta-small">
|
||||
<span><i class="fas fa-calendar"></i> <?php echo get_the_date('d/m/Y'); ?></span>
|
||||
</div>
|
||||
|
||||
<h2 class="post-card-title">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
||||
</h2>
|
||||
|
||||
<p class="post-excerpt"><?php echo wp_trim_words(get_the_excerpt(), 25); ?></p>
|
||||
|
||||
<a href="<?php the_permalink(); ?>" class="read-more-btn">
|
||||
Continuar lendo <i class="fas fa-arrow-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="pagination">
|
||||
<?php
|
||||
the_posts_pagination(array(
|
||||
'mid_size' => 2,
|
||||
'prev_text' => '<i class="fas fa-chevron-left"></i> Anterior',
|
||||
'next_text' => 'Próximo <i class="fas fa-chevron-right"></i>',
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="no-posts">
|
||||
<i class="fas fa-inbox"></i>
|
||||
<p>Nenhuma publicação disponível no momento.</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in new issue
Block a user