aboutsummaryrefslogtreecommitdiff
path: root/blog/post.php
diff options
context:
space:
mode:
authorHannah Isopod <me@bathynomus.xyz>2026-09-06 00:49:22 -0600
committerHannah Isopod <me@bathynomus.xyz>2026-09-06 00:49:22 -0600
commitc0572bdb1aa1f3aa055f7895aca524630f08498d (patch)
tree2ed0c3eb8c58c8b1ac905e581fd04433496a3251 /blog/post.php
parent3bb9c3a0f2023d131e773b3d799e9efb61333e5a (diff)
whoopsers! forgot to commit for some months!
Diffstat (limited to 'blog/post.php')
-rw-r--r--blog/post.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/blog/post.php b/blog/post.php
index e0fe8b3..9a4a1ef 100644
--- a/blog/post.php
+++ b/blog/post.php
@@ -16,6 +16,7 @@ $pdate = "";
$udate = "";
$title = "";
$descr = "";
+$authr = "";
$prevtitle = "";
$prevlink = "";
$nexttitle = "";
@@ -26,6 +27,7 @@ foreach($feed->entry as $entry) {
$udate = preg_replace('/T.*$/', ' ', $entry->updated);
$title = $entry->title;
$descr = htmlspecialchars($entry->summary);
+ $authr = $entry->author->name;
} else if($title) {
$nextlink = $entry->link["href"];
$nexttitle = $entry->title;
@@ -47,7 +49,7 @@ if($pdate != $udate) { $udates = " Updated&nbsp;on $udate"; }
<?php include($_SERVER['DOCUMENT_ROOT'] . '/boilerplate.php'); ?>
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
<?php
- echo("<title>$title | isopod.cool v4</title><meta name='description' content='$descr'>");
+ echo("<title>$title | ".$_SERVER['HTTP_HOST']."</title><meta name='description' content='$descr'>");
//$bgfile = glob('bg.*')[0];
//if(!is_null($bgfile)) {
// echo("<style> body > h1:first-of-type { background-image: url('$bgfile') } </style>");
@@ -60,7 +62,7 @@ if($pdate != $udate) { $udates = " Updated&nbsp;on $udate"; }
<main>
<section>
<h2><?php echo($title); ?></h2>
- <p class='h2caption'>Posted&nbsp;on <?php echo($pdate."<br>".$udates); ?></p>
+ <p class='h2caption'>By&nbsp;<?php echo("$authr"); ?><br>Posted&nbsp;on <?php echo($pdate."<br>".$udates); ?></p>
<p class="backlink"><a href="/blog/"><< blog</a></p>
<?php
//echo("<p style='text-align: right;'>I'm testing in prod right now. don't worry about it");