Docs X theme
This commit is contained in:
parent
36a59cd82f
commit
55d304429d
|
@ -6,7 +6,7 @@
|
||||||
foreach ($pagesKeys as $pageKey) {
|
foreach ($pagesKeys as $pageKey) {
|
||||||
// Build the page
|
// Build the page
|
||||||
$page = buildPage($pageKey);
|
$page = buildPage($pageKey);
|
||||||
// If the page is not a child this means the page is main page or parent page
|
// If the page is not a child this means the page is parent-page
|
||||||
if (!$page->isChild()) {
|
if (!$page->isChild()) {
|
||||||
echo '<h6>'.$page->title().'</h6>';
|
echo '<h6>'.$page->title().'</h6>';
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@
|
||||||
$childrenKeys = $page->children();
|
$childrenKeys = $page->children();
|
||||||
// Check if the page has children
|
// Check if the page has children
|
||||||
if ($childrenKeys!==false) {
|
if ($childrenKeys!==false) {
|
||||||
echo '<ul class="nav flex-column">';
|
|
||||||
// Foreach child
|
// Foreach child
|
||||||
|
echo '<ul class="nav flex-column">';
|
||||||
foreach ($childrenKeys as $childKey) {
|
foreach ($childrenKeys as $childKey) {
|
||||||
// Build the child
|
// Build the child
|
||||||
$pageChild = buildPage($childKey);
|
$pageChild = buildPage($childKey);
|
||||||
echo '<li class="nav-item">';
|
echo '<li class="nav-item">';
|
||||||
echo '<a class="nav-link active" href="#">'.$pageChild->title().'</a>';
|
echo '<a class="nav-link active" href="'.$pageChild->permalink().'">'.$pageChild->title().'</a>';
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
}
|
}
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
Loading…
Reference in New Issue