page-archive.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. Template Name: Posts
  4. */
  5. get_header(); ?>
  6. <div class="container leader">
  7. <div class="row">
  8. <div class="col-md-12">
  9. <h1 class="cm-sans fs-2 archive-heading animate__animated animate__fadeInLeft">Archive</h1>
  10. </div>
  11. </div>
  12. <article id="content" class="single" role="main">
  13. <div class="entry-content">
  14. <p>This is a list of every posts, til (today I learned), and bookmark I've published on this website. There a many other pages published on subdomains and elsewhere on this website. For a list of everything published on the website, please see the <a href="<?php echo site_url(); ?>/sitemap">sitemap</a>.</p>
  15. <div class="row">
  16. <div class="col-md-6">
  17. <h5>Posts</h5>
  18. <ul>
  19. <?php $recentposts = get_posts(array( 'numberposts' => -1, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  20. <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  21. <?php endforeach; ?>
  22. </ul>
  23. </div>
  24. <div class="col-md-6">
  25. <h5>Today I Learned</h5>
  26. <ul>
  27. <?php pull_til_all(); ?>
  28. </ul>
  29. <h5>Bookmarks</h5>
  30. <ul class="bookmarks">
  31. <?php bookmarks_all(); ?>
  32. </ul>
  33. </div>
  34. </div>
  35. </div>
  36. </article>
  37. </div>
  38. <?php get_footer('full'); ?>