diff --git a/src/pages/post.php b/src/pages/post.php index 92c0413a..1537a777 100644 --- a/src/pages/post.php +++ b/src/pages/post.php @@ -12,7 +12,7 @@ $postSlug = $_SESSION['_GET']['slug']; $post = Blog::getPostBySlug($postSlug); $postMediaHTML = isset($post->featured_media) ? Blog::getMediaHTML($post->featured_media) : ''; -$page = new Page(__FILE__, 'Post'); +$page = new Page(__FILE__, $post->title->rendered); $page->header(); $page->bodyStart(); $page->navigation(); @@ -28,8 +28,6 @@ $page->navigation();
-

title->rendered ?>

-
content->rendered ?>