page-now.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 <span class="text-muted fw-light"><small>( <sup>*</sup> updated )</small></span></h5>
  21. <ul style="margin:0">
  22. <?php $sticky = get_option('sticky_posts');?>
  23. <?php if( !empty($sticky) ){ ?>
  24. <?php $args = array('post_type' => 'post','posts_per_page' => 5,'post__in' => $sticky);?>
  25. <?php $stickyposts = get_posts($args); ?>
  26. <?php foreach ($stickyposts as $post) : setup_postdata($post); ?>
  27. <li style="color:#777"><?php echo get_the_modified_date('y/m/d'); ?><sup>*</sup> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  28. <?php endforeach; ?>
  29. <?php } ?>
  30. <?php $recentposts = get_posts(array( 'numberposts' => 10, 'offset' => 0, 'post__not_in' => get_option( 'sticky_posts' )) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  31. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  32. <?php endforeach; ?>
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="row mt-3">
  37. <div class="col-lg-4">
  38. <h5 class="fw-bold mt-2">Today I Learned</h5>
  39. <ul style="margin:0">
  40. <?php til(); ?>
  41. </ul>
  42. </div>
  43. <div class="col-lg-4">
  44. <h5 class="fw-bold mt-2">Bookmarks</h5>
  45. <ul style="margin:0">
  46. <?php bookmarks(); ?>
  47. </ul>
  48. </div>
  49. <div class="col-lg-4">
  50. <h5 class="fw-bold mt-2">Projects</h5>
  51. <ul style="margin:0">
  52. <?php $recentposts = get_posts(array( 'category_name' => 'studio', 'numberposts' => 9, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  53. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  54. <?php endforeach; ?>
  55. </ul>
  56. </div>
  57. </div>
  58. <div class="row mt-3 pb-2">
  59. <div class="col-lg-4">
  60. <h5 class="fw-bold mt-2">Docs</h5>
  61. <ul style="margin:0">
  62. <?php docs(); ?>
  63. </ul>
  64. </div>
  65. <div class="col-lg-4">
  66. <h5 class="fw-bold mt-2">Notes</h5>
  67. <ul style="margin:0">
  68. <?php notes(); ?>
  69. </ul>
  70. </div>
  71. <div class="col-lg-4">
  72. <h5 class="fw-bold mt-2">Lists</h5>
  73. <ul style="margin:0">
  74. <?php lists(); ?>
  75. </ul>
  76. </div>
  77. </div>
  78. <div class="row mt-3 pb-2">
  79. <div class="col-lg-4">
  80. <h5 class="fw-bold mt-2">Learning</h5>
  81. <ul style="margin:0">
  82. <?php learning(); ?>
  83. </ul>
  84. </div>
  85. <div class="col-lg-4">
  86. <h5 class="fw-bold mt-2">git Commits</h5>
  87. <ul style="margin:0">
  88. <?php commits(); ?>
  89. </ul>
  90. </div>
  91. <div class="col-lg-4">
  92. <h5 class="fw-bold mt-2">Listening <span class="text-muted fw-light"><small>( all @ <a href="https://davidawindham.com/studio/music/">/music )</a></small></span></h5>
  93. <ul style="margin:0">
  94. <?php listening(); ?>
  95. </ul>
  96. </div>
  97. </div>
  98. <div class="row mt-3 mb-5 pb-2">
  99. <div class="col-lg-4">
  100. <h5 class="fw-bold mt-2">Watching</h5>
  101. <ul style="margin:0">
  102. <?php watching(); ?>
  103. </ul>
  104. </div>
  105. <div class="col-lg-4">
  106. <h5 class="fw-bold mt-2">Reading</h5>
  107. <ul style="margin:0">
  108. <?php reading(); ?>
  109. </ul>
  110. </div>
  111. <div class="col-lg-4">
  112. <h5 class="fw-bold mt-2">Playing</h5>
  113. <ul style="margin:0">
  114. <?php playing(); ?>
  115. </ul>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <?php get_footer(); ?>