From 179de5bba24cbbec6e17a5215a089ddbd1dd73db Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 21 Jun 2020 00:38:07 +0200 Subject: [PATCH] Fix redirect --- index.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/index.php b/index.php index 0750971..949a817 100644 --- a/index.php +++ b/index.php @@ -114,14 +114,6 @@ if ($match['name'] == 'blog') { $variables['title'] = 'Blog — '.$basetitle; } -// If we are dealing with a blog post -if ($match['name'] == 'blog_post') { - $variables['params']['slug'] = $match['params']['slug']; - $variables['post'] = getBlogPosts($variables['params']); - $variables['post'] = $variables['post'][0]; - $variables['title'] = htmlspecialchars_decode(str_replace('·','·',$variables['post']['title'])).' — '.$basetitle; -} - // If we are dealing with the notes if ($match['name'] == 'notes') { $variables['posts'] = getNotes($variables['params']);