diff options
Diffstat (limited to 'src/web/_views')
| -rw-r--r-- | src/web/_views/blog/main.php | 3 | ||||
| -rw-r--r-- | src/web/_views/blog/post.php | 2 | ||||
| -rw-r--r-- | src/web/_views/comments.php | 4 |
3 files changed, 5 insertions, 4 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> diff --git a/src/web/_views/blog/post.php b/src/web/_views/blog/post.php index 1eaef9f..aea51fa 100644 --- a/src/web/_views/blog/post.php +++ b/src/web/_views/blog/post.php @@ -2,7 +2,7 @@ <?=aria_section('post', $post['meta']['name'])?> <div class="span posted"> <?=ucfirst(lang('posted'))?>: - <time><?=$this->format_date($post['meta']['date'])?></time> + <time datetime="<?=$post['meta']['date']?>"><?=$this->format_date($post['meta']['date'])?></time> </div> <?=$post['content']?> </div> diff --git a/src/web/_views/comments.php b/src/web/_views/comments.php index 01b1619..9762def 100644 --- a/src/web/_views/comments.php +++ b/src/web/_views/comments.php @@ -7,7 +7,7 @@ echo '<div class="comment">'; echo '<h3 class="header">' . esc($comment['author']) . '</h3>'; - echo '<div class="span" class="date">' . $date . '</div>'; + echo '<div class="span date">' . $date . '</div>'; echo '<p class="content">' . esc($comment['content']) . '</p>'; echo '</div>'; } @@ -35,7 +35,7 @@ class="hidden" name="ref" value="<?=esc(base64_encode($ref))?>"> - <div><input + <input type="hidden" class="hidden" name="page" |