feat: add page listing to the navbar
This commit is contained in:
parent
01cd47dd5e
commit
7037021187
1 changed files with 10 additions and 1 deletions
|
@ -9,7 +9,16 @@
|
||||||
if ($category->slug == "blog") {
|
if ($category->slug == "blog") {
|
||||||
echo '<a class="btn btn-navbar" href="' . get_category_link($category->term_id) . '">' . $category->name . '</a>';
|
echo '<a class="btn btn-navbar" href="' . get_category_link($category->term_id) . '">' . $category->name . '</a>';
|
||||||
}
|
}
|
||||||
}?>
|
}
|
||||||
|
$pages = get_pages();
|
||||||
|
if ( $pages ) {
|
||||||
|
foreach( $pages as $page ) {
|
||||||
|
if ($page->post_name != "home") {
|
||||||
|
echo '<a class="btn btn-navbar" href="'. get_page_link( $page->ID ) . '">'. $page->post_title .'</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}?>
|
||||||
|
|
||||||
<!-- <a href="/blog.html" class="btn btn-navbar">Blog</a> -->
|
<!-- <a href="/blog.html" class="btn btn-navbar">Blog</a> -->
|
||||||
<!-- <a href="/crea.html" class="btn btn-navbar">Romans</a> -->
|
<!-- <a href="/crea.html" class="btn btn-navbar">Romans</a> -->
|
||||||
<!-- <a href="/apropos.html" class="btn btn-navbar">A propos</a> -->
|
<!-- <a href="/apropos.html" class="btn btn-navbar">A propos</a> -->
|
||||||
|
|
Reference in a new issue