Ident subpages
This commit is contained in:
parent
8a1338b186
commit
e212598c21
|
@ -68,7 +68,11 @@ class pluginStaticPages extends Plugin {
|
||||||
// Show static pages
|
// Show static pages
|
||||||
$staticPages = buildStaticPages();
|
$staticPages = buildStaticPages();
|
||||||
foreach ($staticPages as $page) {
|
foreach ($staticPages as $page) {
|
||||||
$html .= '<li>';
|
if ($page->isParent()) {
|
||||||
|
$html .= '<li class="parent">';
|
||||||
|
} else {
|
||||||
|
$html .= '<li class="subpage" style="margin-left: 10px">';
|
||||||
|
}
|
||||||
$html .= '<a href="' . $page->permalink() . '">' . $page->title() . '</a>';
|
$html .= '<a href="' . $page->permalink() . '">' . $page->title() . '</a>';
|
||||||
$html .= '</li>';
|
$html .= '</li>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue