Browse Source

page desk mv TIL

windhamdavid 1 year ago
parent
commit
8a9280a653
2 changed files with 13 additions and 13 deletions
  1. 2 2
      inc/utils.php
  2. 11 11
      page-desk.php

+ 2 - 2
inc/utils.php

@@ -85,7 +85,7 @@ function pull_til() {
 	$i = 0;
 	$i = 0;
 	foreach ($html->find('ul li ul li') as $li) {
 	foreach ($html->find('ul li ul li') as $li) {
 	    echo $li;
 	    echo $li;
-		if (++$i == 24) break;
+		if (++$i == 43) break;
 	}
 	}
 }
 }
 function pull_til_all() {
 function pull_til_all() {
@@ -107,7 +107,7 @@ function bookmarks_pull() {
 	foreach ($html->find('.linklist-item-title h2 a') as $li) {
 	foreach ($html->find('.linklist-item-title h2 a') as $li) {
 	    if (!empty($html)) {
 	    if (!empty($html)) {
 			echo $li . '<br />';
 			echo $li . '<br />';
-			if (++$i == 22) break;
+			if (++$i == 27) break;
 		}
 		}
 	}
 	}
 }
 }

+ 11 - 11
page-desk.php

@@ -14,17 +14,17 @@ get_header(); ?>
 		<div class="row desk pt-5">
 		<div class="row desk pt-5">
 			<div class="col-md-5">
 			<div class="col-md-5">
 				<div class="entry-content">
 				<div class="entry-content">
-					<h4 class="georgia spread"><em><span class="firstcharacter">T</span>he internet is ok if you look in the right places. It's also awash with nonsense</em>. I'm just hoping not to contribute to the nonsense. I publish little essays, notes, ideas, images, or pretty much anything else I want to share here. This site started with mostly computer related ramblings, but I went elsewhere with it after I quit the social networks. I wrote a <a href="/my-personal-website/">post about this website</a>. The easiest way to quickly scan everything on it is through the <a href="/archive/">archive</a> or <a href="/sitemap/">sitemap</a> pages.
-            <br /><br />Feel free to <a href="/contact/">contact me</a> if you have any feedback, questions, or just want to say hello. <br /><br />Thanks for the visit,</h4>
+					<h4 class="georgia spread"><em><span class="firstcharacter">T</span>he internet is ok if you <a href="<?php echo get_template_directory_uri() . '/img/desk.png'; ?>">look in the right places</a>. It's also awash with nonsense</em>. I'm just hoping not to contribute to the nonsense. I publish little essays, notes, ideas, images, or pretty much anything else I want to share here. This site started with mostly computer related ramblings, but I went elsewhere with it after I quit the social networks. I wrote a <a href="/my-personal-website/">post about this website</a>. The easiest way to quickly scan everything on it is through the <a href="/archive/">archive</a> or <a href="/sitemap/">sitemap</a> pages.
+            Feel free to <a href="/contact/">contact me</a> if you have any feedback, questions, or just want to say hello. <br /><br />Thanks for the visit,</h4>
 					<img src="<?php echo get_template_directory_uri() . '/img/dw_signature.png'; ?>" alt="David Windham Signature"/>
 					<img src="<?php echo get_template_directory_uri() . '/img/dw_signature.png'; ?>" alt="David Windham Signature"/>
-					<img src="<?php echo get_template_directory_uri() . '/img/desk.png'; ?>" alt="Who Needs a Computer Anyway?" width="90%" style="margin:50px 10px 20px;border:3px solid #cecece"/>
+					<!--<img src="<?php echo get_template_directory_uri() . '/img/desk.png'; ?>" alt="Who Needs a Computer Anyway?" width="90%" style="margin:50px 10px 20px;border:3px solid #cecece"/>-->
 				</div>
 				</div>
 				<div class="studio-tools d-none d-lg-block">
 				<div class="studio-tools d-none d-lg-block">
+          <h5><u>Today I Learned</u></h5>
 						<ul>
 						<ul>
-							<li><u>Recent Bookmarks</u></li>
-							<?php bookmarks_pull(); ?>
+							<?php pull_til(); ?>
 						</ul>
 						</ul>
-					</div>
+        </div>
 			</div>
 			</div>
 			<div class="col-md-4 studio-tools">
 			<div class="col-md-4 studio-tools">
 				<ul>
 				<ul>
@@ -39,7 +39,7 @@ get_header(); ?>
           <br>
           <br>
           <?php } ?>
           <?php } ?>
 					<li><u>Recent Posts</u></li>
 					<li><u>Recent Posts</u></li>
-					<?php $recentposts = get_posts('numberposts=68'); foreach ($recentposts as $post) : setup_postdata($post); ?>
+					<?php $recentposts = get_posts('numberposts=67'); foreach ($recentposts as $post) : setup_postdata($post); ?>
 					       <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
 					       <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
 					<?php endforeach; ?>
 					<?php endforeach; ?>
 				</ul>
 				</ul>
@@ -73,10 +73,10 @@ get_header(); ?>
 				</div>
 				</div>
 				<div class="row">
 				<div class="row">
 					<div class="col-md-12 studio-tools">
 					<div class="col-md-12 studio-tools">
-						<h5><u>Today I Learned</u></h5>
-						<ul>
-							<?php pull_til(); ?>
-						</ul>
+            <ul>
+              <li><u>Recent Bookmarks</u></li>
+              <?php bookmarks_pull(); ?>
+            </ul>
 					</div>
 					</div>
 				</div>
 				</div>
 			</div>
 			</div>