don't show exact post time on previews

dev
Joe 2 years ago
parent acc2a0d8e4
commit 901100aef6
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
  1. 2
      blog/index.php

@ -18,7 +18,7 @@
while($row = $stmt->fetch()){
echo '<div class="post-preview">';
echo '<h1><a href="'.$row['postSlug'].'">'.$row['postTitle'].'</a></h1>';
echo '<p class="post-date">Posted on '.date('jS M Y H:i:s', strtotime($row['postDate'])).'</p>';
echo '<p class="post-date">Posted on '.date('jS M Y', strtotime($row['postDate'])).'</p>';
echo '<div class="post-description">'.$row['postDesc'].'</div>';
echo '<p><a href="'.$row['postSlug'].'">Read More</a></p>';
echo '<svg height="10" width="100%">';

Loading…
Cancel
Save