This commit is contained in:
parent
3fbc2ba94b
commit
59f24c3fb2
|
@ -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') {
|
if ($Url->whereAmI()==='blog') {
|
||||||
$Url->setWhereAmI('home');
|
//$Url->setWhereAmI('home');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build specific page
|
// Build specific page
|
||||||
|
@ -118,7 +120,7 @@ elseif ($Url->whereAmI()==='category') {
|
||||||
buildPagesByCategory();
|
buildPagesByCategory();
|
||||||
}
|
}
|
||||||
// Build pages for the homepage
|
// Build pages for the homepage
|
||||||
elseif ($Url->whereAmI()==='home') {
|
elseif ( ($Url->whereAmI()==='home') || ($Url->whereAmI()==='blog') ) {
|
||||||
buildPagesForHome();
|
buildPagesForHome();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ class Url
|
||||||
$this->activeFilter = $filterURI;
|
$this->activeFilter = $filterURI;
|
||||||
|
|
||||||
if (empty($this->slug) && ($filterName=='blog')) {
|
if (empty($this->slug) && ($filterName=='blog')) {
|
||||||
$this->setWhereAmI('home');
|
$this->setWhereAmI('blog');
|
||||||
} elseif (!empty($this->slug) && ($filterName=='blog')) {
|
} elseif (!empty($this->slug) && ($filterName=='blog')) {
|
||||||
$this->setNotFound();
|
$this->setNotFound();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue