diff options
| author | Ada Isopods <me@bathynomus.xyz> | 2026-09-25 02:37:55 -0600 |
|---|---|---|
| committer | Ada Isopods <me@bathynomus.xyz> | 2026-09-25 02:37:55 -0600 |
| commit | aa7f342d12005e51924ce1e39770c709dcf96566 (patch) | |
| tree | bdd789a2e8655786c2428f492073caf194ec2c8b /blog/post.php | |
| parent | d8b65f865ef655d87e910f5713e9bd95ef27fb0f (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.php | 9 |
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 on $udate"; } |
