<?php
/*
 * The default template for displaying content in index page
 */
?>
<div class="col-md-8 col-sm-7">	
  <?php  $relic_args = array(
      'orderby' => 'post_date',
      'order' => 'DESC',
      'post_type' => 'post',
      'paged' => $paged,
      'post_status' => 'publish'
  );
  $relic_query = new WP_Query($relic_args);
  if ($relic_query->have_posts()) : while ($relic_query->have_posts()) : $relic_query->the_post();
      ?>												
      <div class="property-blog-bg">
        <div class="blog-property">
          <div class="blog-details col-md-3 col-xs-6"> 							
            <?php relic_entry_meta(); ?>								
          </div> 
          <div class="blog-img col-md-9 col-xs-6">
            <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
            <?php if (the_post_thumbnail()) { ?>
              <a href="<?php the_permalink(); ?>"> 
                <?php the_post_thumbnail('relic-post-image'); ?>
              </a>
              <?php  } 
               the_excerpt(); ?>						
          </div>			
        </div>
      </div>	
      <?php
    endwhile;
  endif;
  ?> 
  <div class="col-md-12 no-padding-lr">
    <div class="gallery-pagination">
      <?php relic_pagination(); ?>
    </div>
  </div>
</div>
