Ident subpages

This commit is contained in:
Diego Najar 2019-10-27 11:09:48 +01:00
parent 8a1338b186
commit e212598c21
1 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,11 @@ class pluginStaticPages extends Plugin {
// Show static pages
$staticPages = buildStaticPages();
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 .= '</li>';
}