From 3b606bcc096a6d9860672e6d0d003ca9e80c067e Mon Sep 17 00:00:00 2001 From: Hannah Isopod Date: Sun, 15 Feb 2026 22:42:27 -0700 Subject: THE BIG ONE Total website redesign. Multiple new blog posts. Routine updates on several pages. Too much to list, even if I remembered it all. Remind me not to put this git repo on any portfolios. --- blog/post.php | 129 +++++++++++++++++++++------------------------------------- 1 file changed, 47 insertions(+), 82 deletions(-) (limited to 'blog/post.php') diff --git a/blog/post.php b/blog/post.php index 354472b..a004cbd 100644 --- a/blog/post.php +++ b/blog/post.php @@ -3,7 +3,7 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL);*/ -if($_SERVER['REQUEST_URI'] === "/blog/posts/post.php") { +if($_SERVER['REQUEST_URI'] === "/blog/post.php") { header("Location: /blog/"); die(); } @@ -35,6 +35,11 @@ foreach($feed->entry as $entry) { $prevtitle = $entry->title; } } +if(!$title) { + $title = "isoblog placeholder title"; +} +$udates = ""; +if($pdate != $udate) { $udates = " Updated on $udate"; } ?> @@ -42,92 +47,52 @@ foreach($feed->entry as $entry) { - $title"); - $bgfile = glob('bg.*')[0]; - if(!is_null($bgfile)) { - echo(""); - } + echo("$title | isopod.cool v4"); + //$bgfile = glob('bg.*')[0]; + //if(!is_null($bgfile)) { + // echo(""); + //} ?> - - - isoblog

$title

Posted on $pdate$udates

"); - //echo("

I'm testing in prod right now. don't worry about it"); + +

+
+

+

Posted on ".$udates); ?>

+ + I'm testing in prod right now. don't worry about it"); - //Boilerplate for Parsedown - include($root."/Parsedown.php"); - $Parsedown = new Parsedown(); - echo $Parsedown->text(file_get_contents("index.md")); - $Parsedown->setSafeMode(true); - $return = $_GET["return"]; - ?> -
- -
-

Comments

-
- "; ?> - -
- - - -
- -
- text(file_get_contents("index.md")); + $posttext = str_replace("

", "

", $posttext); + $posttext = str_replace("
", "", $posttext); + $posttext = str_replace("

", "

", $posttext); + $posttext = str_replace("

", "", $posttext); + $posttext = str_replace("

", "

", $posttext); + $posttext = str_replace("

", "", $posttext); + echo $posttext; + $Parsedown->setSafeMode(true); ?> - -
-
- +
+ + +
+
+ -- cgit v1.2.3