-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
20 lines (20 loc) · 842 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php get_header(); ?>
<main class="main" role="main">
<div class="row">
<div id="conteudo" class="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div <?php post_class(); ?>>
<span class="date"><?php the_time('d/m/Y'); ?></span>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php if( has_post_thumbnail() ): ?>
<figure><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumb-700x320'); ?></a></figure>
<?php endif; ?>
<p class="excerpt"><?php echo get_the_excerpt(); ?></p>
</div>
<?php endwhile; endif; ?>
<?php echo snack_pagination(); ?>
</div>
<?php get_sidebar(); ?>
</div>
</main>
<?php get_footer(); ?>