windhamdavid 1 year ago
parent
commit
4672e57179
2 changed files with 9 additions and 5 deletions
  1. 3 3
      inc/utils.php
  2. 6 2
      page-now.php

+ 3 - 3
inc/utils.php

@@ -142,15 +142,15 @@ function bookmarks_all() {
 	}
 }
 
-function work() {
+function now() {
 	require_once('lib/html_dom.php');
-	$url = 'https://davidawindham.com/til/notes/work';
+	$url = 'https://davidawindham.com/til/lists/now';
 	$html = file_get_html($url);
 	$i = 0;
 	foreach ($html->find('.markdown ul li') as $li) {
     if (!empty($html)) {
       echo $li;
-      if (++$i == 3) break;
+      if (++$i == 2) break;
     }
   }
 }

+ 6 - 2
page-now.php

@@ -15,8 +15,12 @@ get_header(); ?>
 			<div class="entry-content">
 				<div class="row mt-3">
           <div class="col-lg-7">
-            <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>
-            <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>
+            <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">
+							<?php now(); ?>
+						</ul>
           </div>
           <div class="col-lg-4 offset-md-1">
 						<h5 class="fw-bold mt-2">Posts <span class="text-muted fw-light"><small>( <sup>*</sup> updated )</small></span></h5>