just-a-blog

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 0f4316a3f028fbe97d94fcadf2c286d292fa0009
parent 077a6d48d12fc0a094194e8dfc7b13e8166495b5
Author: Overseer <overseer@mona.qualityreto.net>
Date:   Sat, 24 Feb 2018 01:03:15 -0600

Fixed titles and navigation.

Diffstat:
functions.php | 4++--
header.php | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/functions.php b/functions.php @@ -79,10 +79,10 @@ function set_title() { } -function build_nav() { +function build_nav( $arrayOfPages ) { $nav = "<ul class=\"nav\">\n"; - foreach( $pages as $thisPage ) { + foreach( $arrayOfPages as $thisPage ) { #$nav .= "\t\t\t<li id=\"" . $thisPage . "\">\n\t\t\t\t<a href=\"" . URL . BLOG_DIR . "/page/" . link_name( $thisPage ) . "\">" . format_name( $thisPage ) . "</a></li>\n"; $nav .= "\t\t\t<li id=\"" . $thisPage . "\">\n\t\t\t\t<a href=\"" . URL . BLOG_DIR . "index.php?page=" . link_name( $thisPage ) . "\">" . format_name( $thisPage ) . "</a></li>\n"; } diff --git a/header.php b/header.php @@ -1,5 +1,5 @@ <?php -build_nav(); +$nav = build_nav( $pages ); $title = set_title(); write_html( file_get_contents( "html/header.html" ), $title, $blogDir, $nav ); ?>