Remove default homepage
This commit is contained in:
parent
d33ea370d0
commit
e76d9ff651
|
@ -5,10 +5,12 @@
|
|||
// ============================================================================
|
||||
|
||||
$plugins = array(
|
||||
'siteHead'=>array(), // <html><head>HERE</head><body>...</body></html>
|
||||
'siteBodyBegin'=>array(), // <html><head>...</head><body>HERE...</body></html>
|
||||
'siteBodyEnd'=>array(), // <html><head>...</head><body>...HERE</body></html>
|
||||
'siteSidebar'=>array(), // <html><head>...</head><body>...<sidebar>HERE</sidebar>...</body></html>
|
||||
'siteHead'=>array(),
|
||||
'siteBodyBegin'=>array(),
|
||||
'siteBodyEnd'=>array(),
|
||||
'siteSidebar'=>array(),
|
||||
'beforeSiteLoad'=>array(),
|
||||
'afterSiteLoad'=>array(),
|
||||
|
||||
'pageBegin'=>array(),
|
||||
'pageEnd'=>array(),
|
||||
|
@ -24,12 +26,6 @@ $plugins = array(
|
|||
'loginBodyBegin'=>array(),
|
||||
'loginBodyEnd'=>array(),
|
||||
|
||||
'beforeSiteLoad'=>array(),
|
||||
'afterSiteLoad'=>array(),
|
||||
'beforePostsLoad'=>array(),
|
||||
'afterPostsLoad'=>array(),
|
||||
'beforePagesLoad'=>array(),
|
||||
'afterPagesLoad'=>array(),
|
||||
'all'=>array()
|
||||
);
|
||||
|
||||
|
|
|
@ -47,21 +47,24 @@ class pluginPages extends Plugin {
|
|||
|
||||
foreach($parents as $parent)
|
||||
{
|
||||
// Print the parent
|
||||
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a></li>';
|
||||
|
||||
// Check if the parent hash children
|
||||
if(isset($pagesParents[$parent->key()]))
|
||||
if($Site->homepage()!==$parent->key())
|
||||
{
|
||||
$children = $pagesParents[$parent->key()];
|
||||
// Print the parent
|
||||
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a></li>';
|
||||
|
||||
// Print the children
|
||||
$html .= '<li><ul>';
|
||||
foreach($children as $child)
|
||||
// Check if the parent hash children
|
||||
if(isset($pagesParents[$parent->key()]))
|
||||
{
|
||||
$html .= '<li><a class="children" href="'.$child->permalink().'">— '.$child->title().'</a></li>';
|
||||
$children = $pagesParents[$parent->key()];
|
||||
|
||||
// Print the children
|
||||
$html .= '<li><ul>';
|
||||
foreach($children as $child)
|
||||
{
|
||||
$html .= '<li><a class="children" href="'.$child->permalink().'">— '.$child->title().'</a></li>';
|
||||
}
|
||||
$html .= '</ul></li>';
|
||||
}
|
||||
$html .= '</ul></li>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue