diff options
Diffstat (limited to 'src/web/_views/apps/blog.php')
-rw-r--r-- | src/web/_views/apps/blog.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/_views/apps/blog.php b/src/web/_views/apps/blog.php index 7290f0e..f64453c 100644 --- a/src/web/_views/apps/blog.php +++ b/src/web/_views/apps/blog.php @@ -1,13 +1,13 @@ <?php /* Copyright (c) 2024 Freya Murphy */ ?> <?=aria_section('blog', lang('title'))?> - <p><?=lang('blog_desc', sub: [$this->main->get_url('rss.xml')])?></p> + <p><?=lang('blog_desc', sub: [$this->get_url('rss.xml')])?></p> <?php foreach($blog as $name => $post) { $meta = $post['meta']; - $link = $this->main->get_url('blog/post?name=' . $name); + $link = $this->get_url('blog/post/' . substr($name, 0, -3)); echo '<a href="' . $link . '"><h3>' . $meta['name'] . '</h3></a>'; echo '<span>' . $meta['desc'] . '</span><br>'; - echo '<span><time>' . $this->main->format_date($meta['date']) . '</time></span>'; + echo '<span><time>' . $this->format_date($meta['date']) . '</time></span>'; } ?> </div> |