diff options
Diffstat (limited to 'blog/post.php')
| -rw-r--r-- | blog/post.php | 6 |
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 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 on $udate"; } <main> <section> <h2><?php echo($title); ?></h2> - <p class='h2caption'>Posted on <?php echo($pdate."<br>".$udates); ?></p> + <p class='h2caption'>By <?php echo("$authr"); ?><br>Posted 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"); |
