Fix title for blog
This commit is contained in:
parent
f609c8d3a0
commit
99c3f61f6b
@ -17,6 +17,7 @@ $router->map('GET', '/rss/notes', function() {}, 'rss-notes');
|
|||||||
$router->map('GET', '/about', function() {}, 'about');
|
$router->map('GET', '/about', function() {}, 'about');
|
||||||
$router->map('GET', '/feeds', function() {}, 'feeds');
|
$router->map('GET', '/feeds', function() {}, 'feeds');
|
||||||
$router->map('GET', '/uses', function() {}, 'uses');
|
$router->map('GET', '/uses', function() {}, 'uses');
|
||||||
|
$router->map('GET', '/now', function() {}, 'now');
|
||||||
$router->map('GET', '/blog', function() {}, 'blog');
|
$router->map('GET', '/blog', function() {}, 'blog');
|
||||||
$router->map('GET', '/blog/[*:slug]', function() {}, 'blog_post');
|
$router->map('GET', '/blog/[*:slug]', function() {}, 'blog_post');
|
||||||
$router->map('GET', '/notes', function() {}, 'notes');
|
$router->map('GET', '/notes', function() {}, 'notes');
|
||||||
@ -55,6 +56,7 @@ $variables = [
|
|||||||
// If we are dealing with the home page
|
// If we are dealing with the home page
|
||||||
if ($match['name'] == 'home') {
|
if ($match['name'] == 'home') {
|
||||||
$variables['posts'] = getBlogPosts($variables['params']);
|
$variables['posts'] = getBlogPosts($variables['params']);
|
||||||
|
$variables['title'] = 'Blog — Yarmo Mackenbach';
|
||||||
// $variables['icons'] = getIcons();
|
// $variables['icons'] = getIcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user