Use post title
This commit is contained in:
parent
2c23e4f5d3
commit
44aa8893d4
1 changed files with 1 additions and 3 deletions
|
@ -12,7 +12,7 @@ $postSlug = $_SESSION['_GET']['slug'];
|
||||||
$post = Blog::getPostBySlug($postSlug);
|
$post = Blog::getPostBySlug($postSlug);
|
||||||
$postMediaHTML = isset($post->featured_media) ? Blog::getMediaHTML($post->featured_media) : '';
|
$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->header();
|
||||||
$page->bodyStart();
|
$page->bodyStart();
|
||||||
$page->navigation();
|
$page->navigation();
|
||||||
|
@ -28,8 +28,6 @@ $page->navigation();
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui segment">
|
<div class="ui segment">
|
||||||
<h2 class="ui header"><?= $post->title->rendered ?></h2>
|
|
||||||
|
|
||||||
<div><?= $post->content->rendered ?></div>
|
<div><?= $post->content->rendered ?></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue