index.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php get_header(); ?>
  2. <div id="content" class="site-content">
  3. <div class="container">
  4. <div class="row">
  5. <section id="primary" class="content-area col-sm-12 col-md-12 col-lg-10 offset-lg-1">
  6. <div id="main" class="site-main" role="main">
  7. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <div class="post-thumbnail">
  10. <?php the_post_thumbnail(); ?>
  11. </div>
  12. <header class="entry-header">
  13. <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );?>
  14. <div class="entry-meta">
  15. <time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><i class="bi bi-calendar-date m2-1"></i> <?php echo get_the_date(); ?></time>
  16. </div>
  17. </header>
  18. <div class="entry-content">
  19. <?php the_content();?>
  20. </div>
  21. <footer class="entry-footer">
  22. </footer>
  23. </article>
  24. <hr/>
  25. <?php endwhile;?>
  26. </div>
  27. </section>
  28. <!-- php get_sidebar() -->
  29. </div>
  30. <div class="row">
  31. <div class="content-area col-sm-12 col-md-12 col-lg-10 offset-lg-1">
  32. <?php the_posts_pagination( array(
  33. 'prev_text' => __( ' &larr; Newer ' ),
  34. 'next_text' => __( ' Older &rarr; ' ),
  35. ));
  36. ?>
  37. <hr/>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <?php get_footer(); ?>