page-now.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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' => 7, '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 mb-5 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">Lists</h5>
  69. <ul style="margin:0">
  70. <?php lists(); ?>
  71. </ul>
  72. </div>
  73. <div class="col-lg-4">
  74. <h5 class="fw-bold mt-2">Notes</h5>
  75. <ul style="margin:0">
  76. <?php notes(); ?>
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <?php get_footer(); ?>