page-now.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /*
  3. Template Name: Now
  4. */
  5. get_header(); ?>
  6. <div class="container leader">
  7. <div class="row">
  8. <div class="col-md-12">
  9. <h1 id="now" class="cm-sans fs-2 dw-light animate__animated animate__fadeInLeft">Now</h1>
  10. </div>
  11. </div>
  12. <div class="desk" role="main">
  13. <div class="entry-content">
  14. <div class="row mt-3">
  15. <div class="col-lg-7">
  16. <p class="fs-5 mb-3 lh-base"><span class="mt-1 firstcharacter">A</span> <b><em>NOW</em></b> page... some idea I ran across at some point which made sense. It's basically what I've been doing pulled in from various files. I've developed a habit of keeping notes while working. It started with my work notes and has expanded to items like my grocery lists because they fit right into the same workflow. I just sync a set of files to a server and viola, it's here.</p>
  17. <p><b>23/07/17</b> - I made this page because it was 🔥 outside last weekend that I found myself in front of the computer looking at my own website. I also wanted to simplify the navigation to make my markdown files first class citizens on this website because I update them more often.</p>
  18. </div>
  19. <div class="col-lg-4 offset-md-1">
  20. <h5 class="fw-bold mt-2">Posts</h5>
  21. <ul style="margin:0">
  22. <?php $recentposts = get_posts(array( 'numberposts' => 11, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  23. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  24. <?php endforeach; ?>
  25. </ul>
  26. </div>
  27. </div>
  28. <div class="row mt-3">
  29. <div class="col-lg-4">
  30. <h5 class="fw-bold mt-2">Today I Learned</h5>
  31. <ul style="margin:0">
  32. <?php til(); ?>
  33. </ul>
  34. </div>
  35. <div class="col-lg-4">
  36. <h5 class="fw-bold mt-2">Bookmarks</h5>
  37. <ul style="margin:0">
  38. <?php bookmarks(); ?>
  39. </ul>
  40. </div>
  41. <div class="col-lg-4">
  42. <h5 class="fw-bold mt-2">Projects</h5>
  43. <ul style="margin:0">
  44. <?php $recentposts = get_posts(array( 'category_name' => 'studio', 'numberposts' => 9, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  45. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  46. <?php endforeach; ?>
  47. </ul>
  48. </div>
  49. </div>
  50. <div class="row mt-3 mb-5 pb-2">
  51. <div class="col-lg-4">
  52. <h5 class="fw-bold mt-2">Docs</h5>
  53. <ul style="margin:0">
  54. <?php docs(); ?>
  55. </ul>
  56. </div>
  57. <div class="col-lg-4">
  58. <h5 class="fw-bold mt-2">Lists</h5>
  59. <ul style="margin:0">
  60. <?php lists(); ?>
  61. </ul>
  62. </div>
  63. <div class="col-lg-4">
  64. <h5 class="fw-bold mt-2">Notes</h5>
  65. <ul style="margin:0">
  66. <?php notes(); ?>
  67. </ul>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <?php get_footer(); ?>