Fix redirect
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Yarmo Mackenbach 2020-06-21 00:38:07 +02:00
parent 17785b8d27
commit 179de5bba2

View File

@ -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']);