This commit is contained in:
Diego Najar 2017-10-19 00:05:02 +02:00
parent 3fbc2ba94b
commit 59f24c3fb2
2 changed files with 5 additions and 3 deletions

View File

@ -101,8 +101,10 @@ if ($Site->homepage() && $Url->whereAmI()==='home') {
}
}
// The filter blog alway show all the content
// Change the where am i to use
if ($Url->whereAmI()==='blog') {
$Url->setWhereAmI('home');
//$Url->setWhereAmI('home');
}
// Build specific page
@ -118,7 +120,7 @@ elseif ($Url->whereAmI()==='category') {
buildPagesByCategory();
}
// Build pages for the homepage
elseif ($Url->whereAmI()==='home') {
elseif ( ($Url->whereAmI()==='home') || ($Url->whereAmI()==='blog') ) {
buildPagesForHome();
}

View File

@ -73,7 +73,7 @@ class Url
$this->activeFilter = $filterURI;
if (empty($this->slug) && ($filterName=='blog')) {
$this->setWhereAmI('home');
$this->setWhereAmI('blog');
} elseif (!empty($this->slug) && ($filterName=='blog')) {
$this->setNotFound();
return false;