aboutsummaryrefslogtreecommitdiff
path: root/blog/post.php
diff options
context:
space:
mode:
authorAda Isopods <me@bathynomus.xyz>2026-09-25 02:37:55 -0600
committerAda Isopods <me@bathynomus.xyz>2026-09-25 02:37:55 -0600
commitaa7f342d12005e51924ce1e39770c709dcf96566 (patch)
treebdd789a2e8655786c2428f492073caf194ec2c8b /blog/post.php
parentd8b65f865ef655d87e910f5713e9bd95ef27fb0f (diff)
An array of small changes
Notably, a couple blog posts and a new page in /uses Oh, and the mysterious addition of a byline to the blog.
Diffstat (limited to 'blog/post.php')
-rw-r--r--blog/post.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/blog/post.php b/blog/post.php
index 9a4a1ef..ff7abf0 100644
--- a/blog/post.php
+++ b/blog/post.php
@@ -12,11 +12,11 @@ $root = $_SERVER['DOCUMENT_ROOT'];
$cwd = preg_replace('/^.*\//', '', getcwd());
$feed = simplexml_load_file($_SERVER['DOCUMENT_ROOT']."/blog/blog.atom");
-$pdate = "";
+$pdate = "a future date...";
$udate = "";
$title = "";
$descr = "";
-$authr = "";
+$authr = "someone...";
$prevtitle = "";
$prevlink = "";
$nexttitle = "";
@@ -38,7 +38,10 @@ foreach($feed->entry as $entry) {
}
}
if(!$title) {
- $title = "isoblog placeholder title";
+ $title = "DRAFT: ".preg_replace("/^.*\//","",getcwd());
+}
+if(!$udate) {
+ $udate = date("Y-m-d", filemtime("index.md"));
}
$udates = "";
if($pdate != $udate) { $udates = " Updated&nbsp;on $udate"; }