page-now.php 4.8 KB

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