page-archive.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /*
  3. Template Name: Posts
  4. */
  5. get_header(); ?>
  6. <div class="container">
  7. <article id="content" class="single" role="main">
  8. <div class="entry-content">
  9. <header class="page-header">
  10. <h1 class="cm-sans">Archive</h1>
  11. <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>
  12. </header>
  13. <div class="row">
  14. <div class="col-md-6">
  15. <h5>Posts</h5>
  16. <ul>
  17. <?php $recentposts = get_posts(array( 'numberposts' => -1, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  18. <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  19. <?php endforeach; ?>
  20. </ul>
  21. </div>
  22. <div class="col-md-6">
  23. <h5>Today I Learned</h5>
  24. <ul>
  25. <?php pull_til_all(); ?>
  26. </ul>
  27. <h5>Bookmarks</h5>
  28. <ul class="bookmarks">
  29. <?php bookmarks_all(); ?>
  30. </ul>
  31. </div>
  32. </div>
  33. </div>
  34. </article>
  35. </div>
  36. <?php get_footer('home'); ?>