aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/archive/index.php2
-rw-r--r--views/home/index.php1
-rw-r--r--views/meta.php4
3 files changed, 6 insertions, 1 deletions
diff --git a/views/archive/index.php b/views/archive/index.php
index de01503..64d6a77 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -1,5 +1,7 @@
<?php
+ $title = $_GET["page_url"] . ' archive';
include '../meta.php';
+
$page = null;
runController('archive');
?>
diff --git a/views/home/index.php b/views/home/index.php
index 6fbad4c..f567744 100644
--- a/views/home/index.php
+++ b/views/home/index.php
@@ -1,4 +1,5 @@
<?php
+ $title = 'Home';
include '../meta.php';
?>
diff --git a/views/meta.php b/views/meta.php
index 9a50aa8..4aa7b8f 100644
--- a/views/meta.php
+++ b/views/meta.php
@@ -1,6 +1,8 @@
<?php
-include_once "../header.php";
+if (isset($title)) {
+ include_once "../header.php";
+}
function end_page() {
include_once "../footer.php";