summaryrefslogtreecommitdiff
path: root/src/web/_views/blog/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_views/blog/main.php')
-rw-r--r--src/web/_views/blog/main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/_views/blog/main.php b/src/web/_views/blog/main.php
index 78abaa7..5425c9e 100644
--- a/src/web/_views/blog/main.php
+++ b/src/web/_views/blog/main.php
@@ -5,9 +5,10 @@
foreach($blog as $name => $post) {
$meta = $post['meta'];
$link = $this->get_url('blog/post/' . substr($name, 0, -3));
+ $date = $meta['date'];
echo '<a href="' . $link . '"><h3>' . $meta['name'] . '</h3></a>';
echo '<div class="span">' . $meta['desc'] . '</div>';
- echo '<div class="span"><time>' . $this->format_date($meta['date']) . '</time></div>';
+ echo '<div class="span"><time datetime="' . $date . '">' . $this->format_date($date) . '</time></div>';
}
?>
</div>