page-now.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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-2 lh-base">A <b><em>NOW</em></b> page... <a href="https://sive.rs/now" target="_blank">an idea I ran across</a> at some point which made sense.</p>
  17. <p>23/07/17 - I made this page because it was hot outside last weekend and I found myself in front of the computer looking at my own website. I wanted to make my markdown files first class citizens on this website because I update them more often. I've developed a habit of keeping notes while working which started with technical notes and has expanded to other items because they fit into the same workflow. I just sync a set of files to a server and viola, it's here.</p>
  18. <h5 class="fw-bold mt-4 mb-1">Doing</h5>
  19. <ul class="now-doing" style="margin:0">
  20. <?php now(); ?>
  21. </ul>
  22. </div>
  23. <div class="col-lg-4 offset-md-1">
  24. <h5 class="fw-bold mt-2">Posts <span class="text-muted fw-light"><small>( <sup>*</sup> updated )</small></span></h5>
  25. <ul style="margin:0">
  26. <?php $sticky = get_option('sticky_posts');?>
  27. <?php if( !empty($sticky) ){ ?>
  28. <?php $args = array('post_type' => 'post', 'orderby' => 'modified', 'posts_per_page' => 5,'post__in' => $sticky);?>
  29. <?php $stickyposts = get_posts($args); ?>
  30. <?php foreach ($stickyposts as $post) : setup_postdata($post); ?>
  31. <li style="color:#777"><?php echo get_the_modified_date('y/m/d'); ?> ( <sup>*</sup><?php echo get_the_date('y/m/d'); ?> )- <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  32. <?php endforeach; ?>
  33. <?php } ?>
  34. <?php $recentposts = get_posts(array( 'numberposts' => 13, 'offset' => 0, 'post__not_in' => get_option( 'sticky_posts' )) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  35. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  36. <?php endforeach; ?>
  37. </ul>
  38. </div>
  39. </div>
  40. <div class="row mt-3">
  41. <div class="col-lg-4">
  42. <h5 class="fw-bold mt-2">Today I Learned</h5>
  43. <ul style="margin:0">
  44. <?php til(); ?>
  45. </ul>
  46. </div>
  47. <div class="col-lg-4">
  48. <h5 class="fw-bold mt-2">Bookmarks</h5>
  49. <ul style="margin:0">
  50. <?php bookmarks(); ?>
  51. </ul>
  52. </div>
  53. <div class="col-lg-4">
  54. <h5 class="fw-bold mt-2">Projects</h5>
  55. <ul style="margin:0">
  56. <?php $recentposts = get_posts(array( 'category_name' => 'studio', 'numberposts' => 9, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
  57. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  58. <?php endforeach; ?>
  59. </ul>
  60. </div>
  61. </div>
  62. <div class="row mt-3 pb-2">
  63. <div class="col-lg-4">
  64. <h5 class="fw-bold mt-2">Docs</h5>
  65. <ul style="margin:0">
  66. <?php docs(); ?>
  67. </ul>
  68. </div>
  69. <div class="col-lg-4">
  70. <h5 class="fw-bold mt-2">Notes</h5>
  71. <ul style="margin:0">
  72. <?php notes(); ?>
  73. </ul>
  74. </div>
  75. <div class="col-lg-4">
  76. <h5 class="fw-bold mt-2">Lists</h5>
  77. <ul style="margin:0">
  78. <?php lists(); ?>
  79. </ul>
  80. </div>
  81. </div>
  82. <div class="row mt-3 pb-2">
  83. <div class="col-lg-4">
  84. <h5 class="fw-bold mt-2">Learning</h5>
  85. <ul style="margin:0">
  86. <?php learning(); ?>
  87. </ul>
  88. </div>
  89. <div class="col-lg-4">
  90. <h5 class="fw-bold mt-2">git Commits</h5>
  91. <ul style="margin:0">
  92. <?php commits(); ?>
  93. </ul>
  94. </div>
  95. <div class="col-lg-4">
  96. <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>
  97. <ul style="margin:0">
  98. <?php listening(); ?>
  99. </ul>
  100. </div>
  101. </div>
  102. <div class="row mt-3 mb-5 pb-2">
  103. <div class="col-lg-4">
  104. <h5 class="fw-bold mt-2">Watching</h5>
  105. <ul style="margin:0">
  106. <?php watching(); ?>
  107. </ul>
  108. </div>
  109. <div class="col-lg-4">
  110. <h5 class="fw-bold mt-2">Reading</h5>
  111. <ul style="margin:0">
  112. <?php reading(); ?>
  113. </ul>
  114. </div>
  115. <div class="col-lg-4">
  116. <h5 class="fw-bold mt-2">Playing</h5>
  117. <ul style="margin:0">
  118. <?php playing(); ?>
  119. </ul>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <?php get_footer(); ?>