windhamdavid 5 months ago
parent
commit
7d95e12b7c
4 changed files with 15 additions and 6 deletions
  1. 1 1
      inc/utils.php
  2. 5 5
      page-now.php
  3. 9 0
      style.css
  4. 0 0
      v4-style.min.css

+ 1 - 1
inc/utils.php

@@ -150,7 +150,7 @@ function now() {
 	foreach ($html->find('.markdown ul li') as $li) {
     if (!empty($html)) {
       echo $li;
-      if (++$i == 2) break;
+      if (++$i == 3) break;
     }
   }
 }

+ 5 - 5
page-now.php

@@ -17,8 +17,8 @@ get_header(); ?>
           <div class="col-lg-7">
             <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>
             <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>
-            <h5 class="fw-bold mt-4">Currently</h5>
-            <ul class="text-black" style="margin:0">
+            <h5 class="fw-bold mt-4 mb-1">Doing</h5>
+            <ul class="now-doing" style="margin:0">
 							<?php now(); ?>
 						</ul>
           </div>
@@ -27,13 +27,13 @@ get_header(); ?>
 						<ul style="margin:0">
               <?php $sticky = get_option('sticky_posts');?>
               <?php if( !empty($sticky) ){ ?>
-              <?php $args = array('post_type' => 'post','posts_per_page' => 5,'post__in' => $sticky);?>
+              <?php $args = array('post_type' => 'post', 'orderby' => 'modified','posts_per_page' => 5,'post__in' => $sticky);?>
               <?php $stickyposts = get_posts($args); ?>
                 <?php foreach ($stickyposts as $post) : setup_postdata($post); ?>
-                  <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>
+                  <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>
                 <?php endforeach; ?>
               <?php } ?>
-							<?php $recentposts = get_posts(array( 'numberposts' => 10, 'offset' => 0, 'post__not_in' => get_option( 'sticky_posts' )) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
+							<?php $recentposts = get_posts(array( 'numberposts' => 13, 'offset' => 0, 'post__not_in' => get_option( 'sticky_posts' )) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
 							       <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
 							<?php endforeach; ?>
 						</ul>

+ 9 - 0
style.css

@@ -1499,6 +1499,15 @@ body.art .site-title a {
   height: 120px;
 }
 
+/*============================================
+		Now
+==============================================*/
+.desk ul.now-doing li{
+  color: #4e4e4e;
+  line-height: 1.4em;
+  margin: 0 0 5px 0;
+}
+
 /*============================================
 		Desk
 ==============================================*/

File diff suppressed because it is too large
+ 0 - 0
v4-style.min.css


Some files were not shown because too many files changed in this diff